diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/poll.module | 8 | ||||
-rw-r--r-- | modules/poll/poll.module | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/modules/poll.module b/modules/poll.module index cbc95c404..faf4fc3b3 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -118,7 +118,7 @@ function poll_form(&$node, &$error) { $output .= '<div class="poll-form">'; // Poll choices - $opts = drupal_map_assoc(range(2, $node->choices * 2 + 5)); + $opts = drupal_map_assoc(range(2, $node->choices * 2 + 5)); for ($a = 0; $a < $node->choices; $a++) { $group1 .= form_textfield(t('Choice %n', array('%n' => ($a + 1))), "choice][$a][chtext", $node->choice[$a]['chtext'], 50, 127, $error["choice][$a][chtext"]); if ($admin) { @@ -129,7 +129,7 @@ function poll_form(&$node, &$error) { $group1 .= form_checkbox(t('Need more choices'), 'morechoices', 1, 0, t("If the amount of boxes above isn't enough, check this box and click the Preview button below to add some more.")); $output .= form_group(t('Choices'), $group1); - + // Poll attributes $_duration = array_merge(array(0 => t('Unlimited')), drupal_map_assoc(array(86400, 172800, 345600, 604800, 1209600, 2419200, 4838400, 9676800, 31536000), "format_interval")); $_active = array(0 => t('Closed'), 1 => t('Active')); @@ -138,8 +138,8 @@ function poll_form(&$node, &$error) { $group2 .= form_radios(t('Poll status'), 'active', isset($node->active) ? $node->active : 1, $_active, t('When a poll is closed, visitors can no longer vote for it.')); } $group2 .= form_select(t('Poll duration'), 'runtime', $node->runtime ? $node->runtime : 0, $_duration, t('After this period, the poll will be closed automatically.')); - - $output .= form_group(t('Settings'), $group2); + + $output .= form_group(t('Settings'), $group2); $output .= '</div>'; return $output; diff --git a/modules/poll/poll.module b/modules/poll/poll.module index cbc95c404..faf4fc3b3 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -118,7 +118,7 @@ function poll_form(&$node, &$error) { $output .= '<div class="poll-form">'; // Poll choices - $opts = drupal_map_assoc(range(2, $node->choices * 2 + 5)); + $opts = drupal_map_assoc(range(2, $node->choices * 2 + 5)); for ($a = 0; $a < $node->choices; $a++) { $group1 .= form_textfield(t('Choice %n', array('%n' => ($a + 1))), "choice][$a][chtext", $node->choice[$a]['chtext'], 50, 127, $error["choice][$a][chtext"]); if ($admin) { @@ -129,7 +129,7 @@ function poll_form(&$node, &$error) { $group1 .= form_checkbox(t('Need more choices'), 'morechoices', 1, 0, t("If the amount of boxes above isn't enough, check this box and click the Preview button below to add some more.")); $output .= form_group(t('Choices'), $group1); - + // Poll attributes $_duration = array_merge(array(0 => t('Unlimited')), drupal_map_assoc(array(86400, 172800, 345600, 604800, 1209600, 2419200, 4838400, 9676800, 31536000), "format_interval")); $_active = array(0 => t('Closed'), 1 => t('Active')); @@ -138,8 +138,8 @@ function poll_form(&$node, &$error) { $group2 .= form_radios(t('Poll status'), 'active', isset($node->active) ? $node->active : 1, $_active, t('When a poll is closed, visitors can no longer vote for it.')); } $group2 .= form_select(t('Poll duration'), 'runtime', $node->runtime ? $node->runtime : 0, $_duration, t('After this period, the poll will be closed automatically.')); - - $output .= form_group(t('Settings'), $group2); + + $output .= form_group(t('Settings'), $group2); $output .= '</div>'; return $output; |