diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-04-05 18:11:42 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-04-05 18:11:42 +0000 |
commit | 7dfd5f0b7e04013ccc6c27c5df0eddce0e1b86de (patch) | |
tree | 91c334125a9b5e6f9438d13fb8017055929d6016 /modules/queue.module | |
parent | 6d959ebe3f340e4c7f11a22c67605853411d3790 (diff) | |
download | brdo-7dfd5f0b7e04013ccc6c27c5df0eddce0e1b86de.tar.gz brdo-7dfd5f0b7e04013ccc6c27c5df0eddce0e1b86de.tar.bz2 |
- my editor got set up to insert tabs instead of spaces. Cleaning up.
Diffstat (limited to 'modules/queue.module')
-rw-r--r-- | modules/queue.module | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/modules/queue.module b/modules/queue.module index d7aa0d804..f5bd3dbdc 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -118,32 +118,32 @@ function queue_view($nid) { if ($user->uid != $node->uid && !field_get($node->users, $user->uid)) { if ($op == t("Vote") && $votes[$edit["vote"]]) { - /* - ** If it is a valid vote, record it. - */ - - queue_vote($node, $edit["vote"]); - - $output = t("Your vote has been recorded."); - } - else { - /* - ** Display some explanation or voting guidelines: - */ - - $output .= "<p>". t("When new content get submitted it goes to the submission queue. Most, if not all, registered users can access this queue and can vote whether they think the content should be approved or not. When enough people vote to approve the content, it is pushed over the threshold and up it goes. On the other hand, when too many people voted to drop some content, the content will get trashed.") ."</p>"; - - /* - ** Display a voting form: - */ - - $output .= form_select(t("Your vote"), "vote", "", $votes); - $output .= form_hidden("id", $node->nid); - $output .= form_submit(t("Vote")); - - $output = form($output); - } - } + /* + ** If it is a valid vote, record it. + */ + + queue_vote($node, $edit["vote"]); + + $output = t("Your vote has been recorded."); + } + else { + /* + ** Display some explanation or voting guidelines: + */ + + $output .= "<p>". t("When new content get submitted it goes to the submission queue. Most, if not all, registered users can access this queue and can vote whether they think the content should be approved or not. When enough people vote to approve the content, it is pushed over the threshold and up it goes. On the other hand, when too many people voted to drop some content, the content will get trashed.") ."</p>"; + + /* + ** Display a voting form: + */ + + $output .= form_select(t("Your vote"), "vote", "", $votes); + $output .= form_hidden("id", $node->nid); + $output .= form_submit(t("Vote")); + + $output = form($output); + } + } $theme->header(); node_view($node); |