diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-04-21 13:56:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-04-21 13:56:38 +0000 |
commit | 7231c88a326f92bdc2b1579ac6afb8f7f568170b (patch) | |
tree | b7586493410910be188d97440dbdf1d44b084b91 /modules/drupal.module | |
parent | 7976678719f6e04ecda315a6088ee0eb3cfb0318 (diff) | |
download | brdo-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/drupal.module')
-rw-r--r-- | modules/drupal.module | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/drupal.module b/modules/drupal.module index b6392a501..084fb96d1 100644 --- a/modules/drupal.module +++ b/modules/drupal.module @@ -160,9 +160,12 @@ function drupal_auth($username, $password, $server) { return $login; } +/** + * Implementation of hook_link(). + */ function drupal_link($type) { - if ($type == "system") { - menu("drupal", t("Drupal"), "drupal_page", 0, MENU_HIDE); + if ($type == 'system') { + menu('drupal', t('Drupal'), 'drupal_page', 0, MENU_HIDE); } } |