summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-06-06 20:26:12 +0000
committerDries Buytaert <dries@buytaert.net>2001-06-06 20:26:12 +0000
commit67958d3d41118ac866009383da6679e53080b01a (patch)
tree8e822b81b7d08312996eb6ed0b29e0b0a9070a08 /modules/node/node.module
parent208274f1f9cf13b1be195b999eb91035a502c443 (diff)
downloadbrdo-67958d3d41118ac866009383da6679e53080b01a.tar.gz
brdo-67958d3d41118ac866009383da6679e53080b01a.tar.bz2
- Added 'help structure' for node.module. We still need documentation
for nodes ... anyone maybe? - Improved help.module.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module21
1 files changed, 20 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 0fdd5f701..a9686bf84 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -11,6 +11,22 @@ class Node {
}
}
+function node_help() {
+ global $mod;
+ ?>
+ <P>Todo.</P>
+ <?php
+
+ if ($mod == "node") {
+ foreach (module_list() as $name) {
+ if (module_hook($name, "status") && $name != "node") {
+ print "<H3>". ucfirst($name) ." type</H3>";
+ 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", "<A><B><BLOCKQUOTE><DD><DL><DT><I><LI><OL><U><UL>"), 64, 128, t("If enabled, optionally specify tags which should not be stripped. 'STYLE' attributes, 'ON' attributes and unclosed tags are always stripped."));
@@ -234,7 +250,7 @@ function node_admin() {
}
}
- print "<SMALL>". implode(" | ", $link) ." | <A HREF=\"admin.php?mod=node&op=default\">node settings</A> | <A HREF=\"admin.php?mod=node&op=listing\">node listings</A> | <A HREF=\"admin.php?mod=node&op=search\">search node</A> | <A HREF=\"admin.php?mod=node\">overview</A></SMALL><HR>\n";
+ print "<SMALL>". implode(" | ", $link) ." | <A HREF=\"admin.php?mod=node&op=default\">node settings</A> | <A HREF=\"admin.php?mod=node&op=listing\">node listings</A> | <A HREF=\"admin.php?mod=node&op=search\">search node</A> | <A HREF=\"admin.php?mod=node\">overview</A> | <A HREF=\"admin.php?mod=node&op=help\">help</A></SMALL><HR>\n";
$id = check_input($edit[nid] ? $edit[nid] : $id);
@@ -242,6 +258,9 @@ function node_admin() {
case "add":
print module_invoke($type, "form");
break;
+ case "help":
+ print node_help();
+ break;
case "search":
print node_search($id);
print search_data($keys, $type);