summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-02 00:04:20 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-02 00:04:20 +0000
commite673ae5b9b83efbf84452a0c34499e0fa9523e07 (patch)
treee6c07fa6ee48191d991047c2c055beb489043d29 /modules
parent6a4064e3d4ba1232e8de661a0efb6ab1bcbb0870 (diff)
downloadbrdo-e673ae5b9b83efbf84452a0c34499e0fa9523e07.tar.gz
brdo-e673ae5b9b83efbf84452a0c34499e0fa9523e07.tar.bz2
- Patch #511986 by tgeller, sun | lambic: made the values for 'Poll duration' should regular.
Diffstat (limited to 'modules')
-rw-r--r--modules/poll/poll.module12
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 9f4179562..744a282a2 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -289,7 +289,17 @@ function poll_form($node, $form_state) {
);
// Poll attributes
- $duration = array(0 => t('Unlimited')) + drupal_map_assoc(array(86400, 172800, 345600, 604800, 1209600, 2419200, 4838400, 9676800, 31536000), "format_interval");
+ $duration = array(
+ // 1-6 days.
+ 86400, 2 * 86400, 3 * 86400, 4 * 86400, 5 * 86400, 6 * 86400,
+ // 1-3 weeks (7 days).
+ 604800, 2 * 604800, 3 * 604800,
+ // 1-3,6,9 months (30 days).
+ 2592000, 2 * 2592000, 3 * 2592000, 6 * 2592000, 9 * 2592000,
+ // 1 year (365 days).
+ 31536000,
+ );
+ $duration = array(0 => t('Unlimited')) + drupal_map_assoc($duration, 'format_interval');
$active = array(0 => t('Closed'), 1 => t('Active'));
$form['settings'] = array(