function date_process_values in Date 6
Same name and namespace in other branches
- 5.2 date/date.module \date_process_values()
- 6.2 date/date.module \date_process_values()
- 7.3 date.module \date_process_values()
- 7 date.module \date_process_values()
- 7.2 date.module \date_process_values()
Helper function to create an array of the date values in a field that need to be processed.
3 calls to date_process_values()
- date_formatter_process in date/
date.module - Helper function for creating formatted date arrays from a formatter.
- _date_field_validate in date/
date_elements.inc - Private implementation of hook_field validate operation.
- _date_widget in date/
date_elements.inc - Private implementation of hook_widget().
File
- date/
date.module, line 305 - Defines date/time field types for the Content Construction Kit (CCK).
Code
function date_process_values($field) {
return $field['todate'] ? array(
'value',
'value2',
) : array(
'value',
);
}