From 42abfd001cb68aad276442940f0e9cc28e078021 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 15 Aug 2002 10:24:41 +0000 Subject: - Commited kika's usability patch for the help module. --- modules/help.module | 11 ++++++++++- modules/help/help.module | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'modules') 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 "". implode(" - ", $links) ."
"; + foreach (module_list() as $name) { if (module_hook($name, "help")) { - print "

". ucfirst($name) ." module

"; + print "

". ucfirst($name) ." module

"; 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 "". implode(" - ", $links) ."
"; + foreach (module_list() as $name) { if (module_hook($name, "help")) { - print "

". ucfirst($name) ." module

"; + print "

". ucfirst($name) ." module

"; print module_invoke($name, "help"); } } -- cgit v1.2.3