Revision 76bdcd04
Added by Assos Assos almost 6 years ago
drupal7/sites/all/modules/webform/components/time.inc | ||
---|---|---|
130 | 130 |
foreach (array('start_time', 'end_time') as $field) { |
131 | 131 |
$time[$field] = FALSE; |
132 | 132 |
if (trim($form_state['values']['extra'][$field]) && ($time[$field] = strtotime('1-1-1970 UTC ' . $form_state['values']['extra'][$field])) === FALSE) { |
133 |
form_set_error("extra][$field", t('The @field isn\'t a valid time.', array('@field' => $form['validation'][$field]['#title'])));
|
|
133 |
form_set_error("extra][$field", t("The @field isn't a valid time.", array('@field' => $form['validation'][$field]['#title'])));
|
|
134 | 134 |
} |
135 | 135 |
} |
136 | 136 |
} |
... | ... | |
188 | 188 |
else { |
189 | 189 |
$default_values = array( |
190 | 190 |
'hour' => '', |
191 |
'minute' => '0',
|
|
191 |
'minute' => '', |
|
192 | 192 |
'second' => '', |
193 | 193 |
); |
194 | 194 |
} |
Also available in: Unified diff
Weekly update of contrib modules