From 58aee8cdad4baef160f7e0cf6dc5e245a1acc080 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 27 Jun 2005 18:33:33 +0000 Subject: - Patch #25603 by Stefan: made the sizes of forms consistent. TODO: document the defaults in the PHPdoc comments. --- modules/poll/poll.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/poll') diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 412144023..77b868bdb 100644 --- a/modules/poll/poll.module +++ b/modules/poll/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); -- cgit v1.2.3