You are here

function date_input_date in Date 8

Same name and namespace in other branches
  1. 7.3 date.module \date_input_date()
  2. 7 date.module \date_input_date()
  3. 7.2 date.module \date_input_date()

Wrapper function around each of the widget types for creating a date object.

1 call to date_input_date()
date_combo_validate in ./date_elements.inc
Validate and update a combo element. Don't try this if there were errors before reaching this point.

File

./date.module, line 59
Defines date/time field types.

Code

function date_input_date($field, $instance, $element, $input) {
  switch ($instance['widget']['type']) {
    case 'date_popup':
      $function = 'datetime_get_input_date';
      break;
    default:
      $function = 'datelist_get_input_date';
  }
  return $function($element, $input);
}