function date_input_value in Date 6.2
Same name and namespace in other branches
- 5.2 date/date.module \date_input_value()
1 call to date_input_value()
- date_combo_validate in date/
date_elements.inc - Validate and update a combo element. Don't try this if there were errors before reaching this point.
File
- date/
date.module, line 213 - Defines date/time field types for the Content Construction Kit (CCK).
Code
function date_input_value($field, $element) {
switch ($field['widget']['type']) {
case 'date_text':
case 'date_text_repeat':
$function = 'date_text_input_value';
break;
case 'date_popup':
case 'date_popup_repeat':
$function = 'date_popup_input_value';
break;
default:
$function = 'date_select_input_value';
}
return $function($element);
}