From 27496c4620f3669b3c5449816550edee73e3794f Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 20 May 2001 16:47:50 +0000 Subject: - Changed the node_get_object() and node_get_array() functions to allow multiple conditions - Added the "delete" hook for node-modules. When called, a module should do additional clean-up if necessary. - Updated all node-modules --- modules/forum/forum.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/forum/forum.module') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 8e3693f5f..031f8834b 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -48,7 +48,7 @@ function forum_page() { $output .= "\n"; $output .= " "; while ($node = db_fetch_object($result)) { - $node = node_get_object("nid", $node->nid); + $node = node_get_object(array("nid" => $node->nid)); $output .= " "; } $output .= "
". t("Forum") ."". t("Comments") ."". t("Last comment") ."". t("Moderators") ."
nid\">". check_output($node->title) ."
". check_output($node->body, 1) ."
". forum_num_comments($node->nid) ."". forum_last_comment($node->nid) ."". check_output($node->moderate) ."
\n"; @@ -72,7 +72,7 @@ function forum_admin() { print forum_form(); break; case "edit": - print forum_form(node_get_array(nid, $id)); + print forum_form(node_get_array(array(nid => $id))); break; case t("Submit"): print status(forum_save($edit)); -- cgit v1.2.3