summaryrefslogtreecommitdiff
path: root/modules/help/help.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/help/help.module')
-rw-r--r--modules/help/help.module16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/help/help.module b/modules/help/help.module
index d223d006a..5c68212df 100644
--- a/modules/help/help.module
+++ b/modules/help/help.module
@@ -13,12 +13,11 @@ function help_menu() {
foreach (module_list() as $name) {
if (module_hook($name, 'help')) {
- if (module_invoke($name, 'help', "admin/help#$name")) {
- $items[] = array('path' => 'admin/help/' . $name,
- 'title' => t($name),
- 'callback' => 'help_page',
- 'access' => user_access('access administration pages'));
- }
+ $items[] = array('path' => 'admin/help/' . $name,
+ 'title' => t($name),
+ 'callback' => 'help_page',
+ 'type' => MENU_CALLBACK,
+ 'access' => user_access('access administration pages'));
}
}
return $items;
@@ -84,7 +83,10 @@ function help_page() {
$name = arg(2);
if (module_hook($name, 'help')) {
$temp = module_invoke($name, 'help', "admin/help#$name");
- if (!empty($temp)) {
+ if (empty($temp)) {
+ $output .= t("No help is available for module %module.", array('%module' => $name));
+ }
+ else {
$output .= $temp;
}
}