Index: modules/shortcut/shortcut.module =================================================================== RCS file: /cvs/drupal/drupal/modules/shortcut/shortcut.module,v retrieving revision 1.27 diff -u -p -r1.27 shortcut.module --- modules/shortcut/shortcut.module 24 Sep 2010 00:37:44 -0000 1.27 +++ modules/shortcut/shortcut.module 12 Dec 2010 19:41:54 -0000 @@ -30,7 +30,7 @@ function shortcut_help($path, $arg) { $output .= '
' . t('Choosing shortcut sets') . '
'; $output .= '
' . t('Users with permission to switch shortcut sets can choose a shortcut set to use from the Shortcuts tab of their user account page.') . '
'; $output .= '
' . t('Adding and removing shortcuts') . '
'; - $output .= '
' . t('The Shortcut module creates an add/remove link for each page on your site; the link lets you add or remove the current page from the currently-enabled set of shortcuts (if your theme displays it and you have permission to edit your shortcut set). The core Seven administration theme displays this link next to the page title, as a small + or - sign. If you click on the + sign, you will add that page to your preferred set of shortcuts. If the page is already part of your shortcut set, the link will be a - sign, and will allow you to remove the current page from your shortcut set.') . '
'; + $output .= '
' . t('The Shortcut module creates an add/remove link for each administrative page on your site; the link lets you add or remove the current page from the currently-enabled set of shortcuts (if your theme displays it and you have permission to edit your shortcut set). For example, the core Seven administration theme displays this link next to the page title, as a small + or - sign. If you click on the + sign, you will add that page to your preferred set of shortcuts. If the page is already part of your shortcut set, the link will be a - sign, and will allow you to remove the current page from your shortcut set.') . '
'; $output .= '
' . t('Displaying shortcuts') . '
'; $output .= '
' . t('You can display your shortcuts by enabling the Shortcuts block on the Blocks administration page. Certain administrative modules also display your shortcuts; for example, the core Toolbar module displays them near the top of the page, along with an Edit shortcuts link.', array('@blocks' => url('admin/structure/block'), '@toolbar-help' => url('admin/help/toolbar'))) . '
'; $output .= ''; @@ -678,7 +678,7 @@ function shortcut_preprocess_page(&$vari $link_path = 'admin/config/user-interface/shortcut/link/' . $mlid . '/delete'; } - if (theme_get_setting('shortcut_module_link')) { + if (theme_get_setting('shortcut_module_link') && path_is_admin(current_path())) { $variables['title_suffix']['add_or_remove_shortcut'] = array( '#attached' => array('css' => array(drupal_get_path('module', 'shortcut') . '/shortcut.css')), '#prefix' => '