You are here

function date_process_values in Date 7.3

Same name and namespace in other branches
  1. 5.2 date/date.module \date_process_values()
  2. 6.2 date/date.module \date_process_values()
  3. 6 date/date.module \date_process_values()
  4. 7 date.module \date_process_values()
  5. 7.2 date.module \date_process_values()

Create an array of the date values in a field that need to be processed.

Parameters

array $field: The field being processed.

Return value

array The date values which need to be processed.

5 calls to date_process_values()
date_combo_element_process in ./date_elements.inc
Process an individual date element.
date_field_load in ./date.field.inc
Implements hook_field_load().
date_field_validate in ./date.field.inc
Implements hook_field_validate().
date_field_widget_form in ./date_elements.inc
Private implementation of hook_widget().
date_formatter_process in ./date.module
Helper function for creating formatted date arrays from a formatter.

File

./date.module, line 378

Code

function date_process_values(array $field) {
  return $field['settings']['todate'] ? array(
    'value',
    'value2',
  ) : array(
    'value',
  );
}