summaryrefslogtreecommitdiff
path: root/modules/help.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-04-21 13:56:38 +0000
committerDries Buytaert <dries@buytaert.net>2004-04-21 13:56:38 +0000
commit7231c88a326f92bdc2b1579ac6afb8f7f568170b (patch)
treeb7586493410910be188d97440dbdf1d44b084b91 /modules/help.module
parent7976678719f6e04ecda315a6088ee0eb3cfb0318 (diff)
downloadbrdo-7231c88a326f92bdc2b1579ac6afb8f7f568170b.tar.gz
brdo-7231c88a326f92bdc2b1579ac6afb8f7f568170b.tar.bz2
- Added support for 403 handling. Patch by JonBob. As a side benefit,
administrators will be able to define a custom 403 page, just as they can define 404 pages now. This needs to be documented in the "Changes since / migrating to ..." pages.
Diffstat (limited to 'modules/help.module')
-rw-r--r--modules/help.module9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/help.module b/modules/help.module
index 56fd28d47..927b93cdf 100644
--- a/modules/help.module
+++ b/modules/help.module
@@ -1,10 +1,13 @@
<?php
// $Id$
+/**
+ * Implementation of hook_link().
+ */
function help_link($type) {
- if ($type == "system" && user_access("access administration pages")) {
- menu("admin/help/glossary", t("glossary"), "help_glossary", 8);
- menu("admin/help", t("help"), "help_help_page", 9);
+ if ($type == 'system') {
+ menu('admin/help/glossary', t('glossary'), user_access('access administration pages') ? 'help_glossary' : MENU_DENIED, 8);
+ menu('admin/help', t('help'), user_access('access administration pages') ? 'help_help_page' : MENU_DENIED, 9);
}
}