From cccb132c81e82cc01ca7f014d185c1ecce864377 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 21 Apr 2001 14:19:20 +0000 Subject: - Addition: added a "promote" field to the node table, which makes "promoting nodes" to the main page possible. Stories and reviews could be promoted by default, but - on accasion a good book entry could be manually promoted too. Thus all existing content types can be shown on the main page, not just stories. Requires a SQL update, see 2.00-to-x.xx.sql! - Addition: implemented "auto-post new submissions" feature to disable or by-pass the moderation queue in addition to "moderate new submissions". TODO: admin moderation versus registered user moderation. - Addition: added category and topic support to page.module. --- modules/node/node.module | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 58b77fd99..3c377a2a4 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -27,7 +27,8 @@ function node_admin_view($id) { $output .= "Title:
". check_output($node->title) ."

\n"; $output .= "Author:
". format_username($node->userid) ."

\n"; $output .= "Status:
". $rstatus[$node->status] ."

\n"; - $output .= "Comment:
". comment_status($node->comment) ."

\n"; + $output .= "Comment:
". node_comment_status($node->comment) ."

\n"; + $output .= "Promote:
". node_promote_status($node->promote) ."

\n"; $output .= "Date:
". format_date($node->timestamp) ."

\n"; $output .= "\n"; $output .= "\n"; @@ -44,13 +45,15 @@ function node_admin_edit($id) { foreach (array($node->userid => $node->author, $user->userid => $user->id) as $value=>$key) $author .= " \n"; foreach (array(format_date($node->timestamp) ." (original)" => $node->timestamp, format_date(time()) ." (current)" => time()) as $value=>$key) $timestamp .= " \n"; foreach (node_status($node) as $value) $display .= " \n"; - foreach (comment_status() as $key=>$value) $comment .= " \n"; + foreach (node_comment_status() as $key=>$value) $comment .= " \n"; + foreach (node_promote_status() as $key=>$value) $promote .= " \n"; $output .= "

nid\" METHOD=\"post\">\n"; $output .= "Title:
". check_output($node->title) ."

\n"; $output .= "Author:

\n"; $output .= "Status:

\n"; $output .= "Comment:

\n"; + $output .= "Promote:

\n"; $output .= "Date:

\n"; $output .= "nid\">\n"; $output .= "\n"; -- cgit v1.2.3