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.module11
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/help/help.module b/modules/help/help.module
index 9aae72a3c..8d92d9611 100644
--- a/modules/help/help.module
+++ b/modules/help/help.module
@@ -1,11 +1,10 @@
<?php
-$module = array("admin" => "help_admin");
-
-function help_module($name, $module) {
- print "<H2><A NAME=\"$name\">". ucfirst($name) ." module</A></H2>";
- if ($module["help"]) $module["help"]();
- else print "<I>No documentation available for module '$name'.</I>";
+function help_module($name) {
+ if (module_hook($name, "help")) {
+ print "<H2><A NAME=\"$name\">". ucfirst($name) ." module</A></H2>";
+ print module_invoke($name, "help");
+ }
}
function help_admin() {