You are here

function date_process_values in Date 7

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.3 date.module \date_process_values()
  5. 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_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 388

Code

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