summaryrefslogtreecommitdiff
path: root/modules/queue.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-11-05 22:59:11 +0000
committerDries Buytaert <dries@buytaert.net>2001-11-05 22:59:11 +0000
commitdb47bac35ec035388cfdab0a9fb27e97f8099742 (patch)
treef1ae2de16fdaa0ab39199d61828076e9eeb9af45 /modules/queue.module
parentf88cfaa2dd205846843068175931e68c582bb037 (diff)
downloadbrdo-db47bac35ec035388cfdab0a9fb27e97f8099742.tar.gz
brdo-db47bac35ec035388cfdab0a9fb27e97f8099742.tar.bz2
- 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
Diffstat (limited to 'modules/queue.module')
-rw-r--r--modules/queue.module14
1 files changed, 2 insertions, 12 deletions
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:") ." \"<a href=\"node.php?id=$n->nid\">". check_output($n->title) ."</a>\".";
- }
-
- // 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:") ."<p><i>". check_output($node->log, 1) ."</i></p>";
- }
-
// moderation form:
$output .= "<form action=\"module.php?mod=queue\" method=\"post\">";
foreach ($queue_votes as $key=>$value) $options .= " <option value=\"$value\">$key</option>";