From fafabc7e2a692296bd2a4c607991c24e10674b60 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 14 Jan 2010 06:47:54 +0000 Subject: #674394 by David_Rothstein: Move add/remove shortcut buttons to a theme setting, so that it does not appear on themes where it makes no sense. --- modules/shortcut/shortcut.module | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'modules') diff --git a/modules/shortcut/shortcut.module b/modules/shortcut/shortcut.module index 783f87e31..0fd34b1d1 100644 --- a/modules/shortcut/shortcut.module +++ b/modules/shortcut/shortcut.module @@ -558,15 +558,17 @@ function shortcut_preprocess_page(&$variables) { $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' => '', - ); + if (theme_get_setting('shortcut_module_link')) { + $variables['title_suffix']['add_or_remove_shortcut'] = array( + '#attached' => array('css' => array(drupal_get_path('module', 'shortcut') . '/shortcut.css')), + '#prefix' => '', + ); + } } } -- cgit v1.2.3