| 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 = ""; |
| 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) { |