From db47bac35ec035388cfdab0a9fb27e97f8099742 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 5 Nov 2001 22:59:11 +0000 Subject: - node.module: + Changed node_form() to use good ol' tables instead of div/CSS-tags. + Revised the "revision API": I think we have both an easy and powerful API now that should make everyone happy. + Improved the usability of the rollback functionality a bit. + Removed the "view node" link from the "node overview" page in the admin section and added a "delete node" link instead. + Added a few missing translations; there might be missing more translations though. - book.module: + Made the book module use the "revision API" instead of having it poke and use the innards and underlying details of the revision system. - queue.module: + Made the queue module use the improved revision number. - module.inc: + Applied Moshe's patch: added more arguments to module_invoke() - mail-to-sql.pl: + Added support for more header fields and for folded fields Notes: - no database updates required --- modules/queue.module | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'modules/queue.module') diff --git a/modules/queue.module b/modules/queue.module index ea1ba0b11..aa70ef656 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -51,7 +51,7 @@ function queue_vote($id, $vote) { } else if (variable_get($node->type ."_dump", -2) >= $node->score) { if ($node->revisions) { - node_revision_rollback($node->nid, node_revision_previous($node)); + node_revision_rollback($node, end(node_revision_list($node))); watchdog("special", "moderation: dumped '$node->title' (rollback)"); } else { @@ -61,7 +61,7 @@ function queue_vote($id, $vote) { } else if (variable_get($node->type ."_expire", 6) <= $node->votes) { if ($node->revisions) { - node_revision_rollback($node->nid, node_revision_previous($node)); + node_revision_rollback($node, end(node_revision_list($node))); watchdog("special", "moderation: expired '$node->title' (rollback)"); } else { @@ -108,16 +108,6 @@ function queue_view($id) { */ $queue_votes = array("neutral (+0)" => "+ 0", "post it (+1)" => "+ 1", "dump it (-1)" => "- 1"); - // TODO: this is where the upcoming versioning system should come in - if ($n = node_load(array("nid" => $node->pid))) { - $output .= " ". t("The above node is a proposed update of an existing node:") ." \"nid\">". check_output($n->title) ."\"."; - } - - // TODO: this is where the upcoming versioning system should come in - if ($node->log) { - $output .= " ". t("The log message to accompany this submission is given below:") ."

". check_output($node->log, 1) ."

"; - } - // moderation form: $output .= "
"; foreach ($queue_votes as $key=>$value) $options .= " "; -- cgit v1.2.3