/[drupal]/contributions/modules/decisions/modes/selection.module
ViewVC logotype

Diff of /contributions/modules/decisions/modes/selection.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.13, Mon Jul 27 23:25:43 2009 UTC revision 1.14, Mon Oct 26 20:41:27 2009 UTC
# Line 6  Line 6 
6   * This file implements a selection voting mode   * This file implements a selection voting mode
7   */   */
8    
9  // $Id: selection.module,v 1.12 2009/03/12 21:06:31 anarcat Exp $  // $Id: selection.module,v 1.13 2009/07/27 23:25:43 anarcat Exp $
10    
11  function selection_help($section) {  function selection_help($section) {
12    $help = "";    $help = "";
# Line 47  function selection_decisions_voting_form Line 47  function selection_decisions_voting_form
47    if ($node->choice) {    if ($node->choice) {
48      $list = array();      $list = array();
49    
50        // Put options in random order if randomize option
51        // selected on node create/edit form.
52        if($node->randomize) {
53          $node->choice = _decisions_randomize_options($node->choice, $node->choices);
54        }
55    
56      if ($node->maxchoices == 1) {      if ($node->maxchoices == 1) {
57        // plurality voting        // plurality voting
58        foreach ($node->choice as $i => $choice) {        foreach ($node->choice as $i => $choice) {

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.2