From 67958d3d41118ac866009383da6679e53080b01a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 6 Jun 2001 20:26:12 +0000 Subject: - Added 'help structure' for node.module. We still need documentation for nodes ... anyone maybe? - Improved help.module. --- modules/help.module | 14 ++++++-------- modules/help/help.module | 14 ++++++-------- modules/node.module | 21 ++++++++++++++++++++- modules/node/node.module | 21 ++++++++++++++++++++- 4 files changed, 52 insertions(+), 18 deletions(-) (limited to 'modules') diff --git a/modules/help.module b/modules/help.module index 8d92d9611..254432a7b 100644 --- a/modules/help.module +++ b/modules/help.module @@ -1,14 +1,12 @@ ". ucfirst($name) ." module"; - print module_invoke($name, "help"); - } -} - function help_admin() { - module_iterate("help_module"); + foreach (module_list() as $name) { + if (module_hook($name, "help")) { + print "

". ucfirst($name) ." module

"; + print module_invoke($name, "help"); + } + } } ?> diff --git a/modules/help/help.module b/modules/help/help.module index 8d92d9611..254432a7b 100644 --- a/modules/help/help.module +++ b/modules/help/help.module @@ -1,14 +1,12 @@ ". ucfirst($name) ." module"; - print module_invoke($name, "help"); - } -} - function help_admin() { - module_iterate("help_module"); + foreach (module_list() as $name) { + if (module_hook($name, "help")) { + print "

". ucfirst($name) ." module

"; + print module_invoke($name, "help"); + } + } } ?> diff --git a/modules/node.module b/modules/node.module index 0fdd5f701..a9686bf84 100644 --- a/modules/node.module +++ b/modules/node.module @@ -11,6 +11,22 @@ class Node { } } +function node_help() { + global $mod; + ?> +

Todo.

+ ". ucfirst($name) ." type"; + print module_invoke($name, "help"); + } + } + } +} + function node_conf_filters() { $output .= form_select(t("Strip HTML tags"), "filter_html", variable_get("filter_html", 0), array("Disabled", "Enabled"), t("Strip HTML and PHP tags.")); $output .= form_textfield(t("Allowed HTML tags"), "allowed_html", variable_get("allowed_html", "