Commit 1b1bcc35 authored by Dries's avatar Dries

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

parent 5f9bea26
......@@ -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)));
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment