diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-06-27 18:33:33 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-06-27 18:33:33 +0000 |
commit | 58aee8cdad4baef160f7e0cf6dc5e245a1acc080 (patch) | |
tree | 329e6127e5033a4dcb9ebc60031a009c6b53cc90 /modules/poll.module | |
parent | d190e16c9ef0214293ea32306bfb49d3d1233654 (diff) | |
download | brdo-58aee8cdad4baef160f7e0cf6dc5e245a1acc080.tar.gz brdo-58aee8cdad4baef160f7e0cf6dc5e245a1acc080.tar.bz2 |
- Patch #25603 by Stefan: made the sizes of forms consistent.
TODO: document the defaults in the PHPdoc comments.
Diffstat (limited to 'modules/poll.module')
-rw-r--r-- | modules/poll.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/poll.module b/modules/poll.module index 412144023..77b868bdb 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -138,9 +138,9 @@ function poll_form(&$node) { // Poll choices $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); + $group1 .= form_textfield(t('Choice %n', array('%n' => ($a + 1))), "choice][$a][chtext", $node->choice[$a]['chtext'], 60, 127); if ($admin) { - $group1 .= form_textfield(t('Votes for choice %n', array('%n' => ($a + 1))), "choice][$a][chvotes", (int)$node->choice[$a]['chvotes'], 7, 7); + $group1 .= form_textfield(t('Votes for choice %n', array('%n' => ($a + 1))), "choice][$a][chvotes", (int)$node->choice[$a]['chvotes'], 5, 7); } } $group1 .= form_hidden('choices', $node->choices); |