summaryrefslogtreecommitdiff
path: root/modules/title.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/title.module')
-rw-r--r--modules/title.module9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/title.module b/modules/title.module
index df7e20b9e..38bba8e10 100644
--- a/modules/title.module
+++ b/modules/title.module
@@ -13,11 +13,12 @@ function title_help($section) {
return $output;
}
+/**
+ * Implementation of hook_link().
+ */
function title_link($type) {
- if ($type == "system") {
- if (user_access("access content")) {
- menu("title", t("search"), "title_page", 0, MENU_HIDE, MENU_LOCKED);
- }
+ if ($type == 'system') {
+ menu('title', t('search'), user_access('access content') ? 'title_page' : MENU_DENIED, 0, MENU_HIDE, MENU_LOCKED);
}
}