function date_available_values in Date 8
Helper function to create an array of the date values in a field that need to be processed.
5 calls to date_available_values()
- date_combo_element_process in ./
date_elements.inc - Process an individual date element.
- date_field_field_load in date_field/
date_field.module - Implements hook_field_load().
- date_field_load in ./
date.field.inc - Implements hook_field_load().
- date_field_validate in ./
date.field.inc - Implements hook_field_validate().
- date_formatter_process in ./
date.module - Helper function for creating formatted date arrays from a formatter.
File
- ./
date.module, line 319 - Defines date/time field types.
Code
function date_available_values($field) {
return $field['settings']['todate'] ? array(
'value',
'value2',
) : array(
'value',
);
}