summaryrefslogtreecommitdiff
path: root/modules/shortcut/shortcut.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shortcut/shortcut.module')
-rw-r--r--modules/shortcut/shortcut.module20
1 files changed, 11 insertions, 9 deletions
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' => '<div class="add-or-remove-shortcuts ' . $link_mode . '-shortcut">',
- '#type' => 'link',
- '#title' => '<span class="icon"></span><span class="text">' . $link_text . '</span>',
- '#href' => $link_path,
- '#options' => array('query' => $query, 'html' => TRUE),
- '#suffix' => '</div>',
- );
+ 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' => '<div class="add-or-remove-shortcuts ' . $link_mode . '-shortcut">',
+ '#type' => 'link',
+ '#title' => '<span class="icon"></span><span class="text">' . $link_text . '</span>',
+ '#href' => $link_path,
+ '#options' => array('query' => $query, 'html' => TRUE),
+ '#suffix' => '</div>',
+ );
+ }
}
}