summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/menu.inc11
1 files changed, 6 insertions, 5 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 38168bcc7..361b8dc19 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -1493,11 +1493,12 @@ function menu_get_active_help() {
// Lookup help for this path.
if ($help = $function($router_path, $arg)) {
$output .= $help . "\n";
- }
- // Add "more help" link on admin pages if the module provides a
- // standalone help page.
- if ($arg[0] == "admin" && user_access('access administration pages') && module_exists('help') && $function('admin/help#' . $arg[2], $empty_arg) && $help) {
- $output .= theme("more_help_link", array('url' => url('admin/help/' . $arg[2])));
+
+ // Add "more help" link on admin pages if the module provides a
+ // standalone help page.
+ if ($arg[0] == "admin" && user_access('access administration pages') && module_exists('help') && $function('admin/help#' . $module, $empty_arg)) {
+ $output .= theme("more_help_link", array('url' => url('admin/help/' . $module)));
+ }
}
}
return $output;