diff options
-rw-r--r-- | modules/help.module | 11 | ||||
-rw-r--r-- | modules/help/help.module | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/modules/help.module b/modules/help.module index 423ac662c..ad72396c6 100644 --- a/modules/help.module +++ b/modules/help.module @@ -15,9 +15,18 @@ function help_link($type) { } function help_admin() { + + foreach (module_list() as $name) { + if (module_hook($name, "help")) { + $links[] = la($name, array("mod" => "help"), $name); + } + } + + print "<small>". implode(" - ", $links) ."</small><hr />"; + foreach (module_list() as $name) { if (module_hook($name, "help")) { - print "<h2>". ucfirst($name) ." module</h2>"; + print "<h2><a name=\"$name\">". ucfirst($name) ." module</a></h2>"; print module_invoke($name, "help"); } } diff --git a/modules/help/help.module b/modules/help/help.module index 423ac662c..ad72396c6 100644 --- a/modules/help/help.module +++ b/modules/help/help.module @@ -15,9 +15,18 @@ function help_link($type) { } function help_admin() { + + foreach (module_list() as $name) { + if (module_hook($name, "help")) { + $links[] = la($name, array("mod" => "help"), $name); + } + } + + print "<small>". implode(" - ", $links) ."</small><hr />"; + foreach (module_list() as $name) { if (module_hook($name, "help")) { - print "<h2>". ucfirst($name) ." module</h2>"; + print "<h2><a name=\"$name\">". ucfirst($name) ." module</a></h2>"; print module_invoke($name, "help"); } } |