| 1 |
<?php |
<?php |
| 2 |
//$Id: date_elements.inc,v 1.46.2.2.2.1 2008/05/28 10:10:40 karens Exp $ |
//$Id: date_elements.inc,v 1.46.2.2.2.2 2008/06/06 13:30:31 karens Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 5 |
* Date forms and form themes and validation. |
* Date forms and form themes and validation. |
| 283 |
'#date_label_position' => $field['widget']['label_position'], |
'#date_label_position' => $field['widget']['label_position'], |
| 284 |
); |
); |
| 285 |
|
|
| 286 |
$element[$from_field]['#description'] .= ' '. t('Format: @date', array('@date' => date($element[$from_field]['#date_format'], time()))); |
if ($field['widget']['type'] != 'date_select') { |
| 287 |
|
$element[$from_field]['#description'] .= ' '. t('Format: @date', array('@date' => date($element[$from_field]['#date_format'], time()))); |
| 288 |
|
} |
| 289 |
|
|
| 290 |
// Give this element the right type, using a Date API |
// Give this element the right type, using a Date API |
| 291 |
// or a Date Popup element type. |
// or a Date Popup element type. |