summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-16 21:25:54 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-16 21:25:54 +0000
commit1b1bcc35acc7f2601e2d1a4ada02a1e02b6191dd (patch)
treed5c33d1c8652cbb8f880f75b9ce60c47aa971b91
parent5f9bea269c8fa8cf2a5a80efa33297bb3fea1a37 (diff)
downloadbrdo-1b1bcc35acc7f2601e2d1a4ada02a1e02b6191dd.tar.gz
brdo-1b1bcc35acc7f2601e2d1a4ada02a1e02b6191dd.tar.bz2
- Patch #10026 by Al: bugfix: don't show the 'more help' links when the help module is disabled.
-rw-r--r--includes/menu.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 06bed087a..1fe9cf0da 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -425,9 +425,11 @@ function menu_get_active_help() {
if ($temp = module_invoke($name, 'help', $path)) {
$output .= $temp . "\n";
}
- if (substr($path, 0, 6) == "admin/") {
- if (module_invoke($name, 'help', 'admin/help#' . substr($path, 6))) {
- $output .= theme("more_help_link", url('admin/help/' . substr($path, 6)));
+ if (module_hook('help', 'page')) {
+ if (substr($path, 0, 6) == "admin/") {
+ if (module_invoke($name, 'help', 'admin/help#' . substr($path, 6))) {
+ $output .= theme("more_help_link", url('admin/help/' . substr($path, 6)));
+ }
}
}
}