Index: modules/shortcut/shortcut.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/shortcut/shortcut.module,v
retrieving revision 1.17
diff -u -p -r1.17 shortcut.module
--- modules/shortcut/shortcut.module 11 Jan 2010 00:06:58 -0000 1.17
+++ modules/shortcut/shortcut.module 12 Jan 2010 05:56:39 -0000
@@ -558,15 +558,17 @@ function shortcut_preprocess_page(&$vari
$link_path = 'admin/config/system/shortcut/link/' . $mlid . '/delete';
}
- $variables['title_suffix']['add_or_remove_shortcut'] = array(
- '#attached' => array('css' => array(drupal_get_path('module', 'shortcut') . '/shortcut.css')),
- '#prefix' => '
',
- '#type' => 'link',
- '#title' => '' . $link_text . '',
- '#href' => $link_path,
- '#options' => array('query' => $query, 'html' => TRUE),
- '#suffix' => '
',
- );
+ if (theme_get_setting('shortcut_add_or_remove_link')) {
+ $variables['title_suffix']['add_or_remove_shortcut'] = array(
+ '#attached' => array('css' => array(drupal_get_path('module', 'shortcut') . '/shortcut.css')),
+ '#prefix' => '',
+ '#type' => 'link',
+ '#title' => '' . $link_text . '',
+ '#href' => $link_path,
+ '#options' => array('query' => $query, 'html' => TRUE),
+ '#suffix' => '
',
+ );
+ }
}
}
Index: themes/seven/seven.info
===================================================================
RCS file: /cvs/drupal/drupal/themes/seven/seven.info,v
retrieving revision 1.4
diff -u -p -r1.4 seven.info
--- themes/seven/seven.info 4 Jan 2010 03:46:31 -0000 1.4
+++ themes/seven/seven.info 12 Jan 2010 05:56:39 -0000
@@ -7,6 +7,7 @@ core = 7.x
engine = phptemplate
stylesheets[screen][] = reset.css
stylesheets[screen][] = style.css
+settings[shortcut_add_or_remove_link] = 1
regions[content] = Content
regions[help] = Help
regions[page_top] = Page top