From 1b1bcc35acc7f2601e2d1a4ada02a1e02b6191dd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 16 Aug 2004 21:25:54 +0000 Subject: [PATCH] - Patch #10026 by Al: bugfix: don't show the 'more help' links when the help module is disabled. --- includes/menu.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/menu.inc b/includes/menu.inc index 06bed087acc..1fe9cf0da68 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))); + } } } }