- Patch #10026 by Al: bugfix: don't show the 'more help' links when the help module is disabled.

4.5.x
Dries Buytaert 2004-08-16 21:25:54 +00:00
parent 5f9bea269c
commit 1b1bcc35ac
1 changed files with 5 additions and 3 deletions

View File

@ -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)));
}
}
}
}