You are here

function date_input_date in Date 7

Same name and namespace in other branches
  1. 8 date.module \date_input_date()
  2. 7.3 date.module \date_input_date()
  3. 7.2 date.module \date_input_date()
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 132

Code

function date_input_date($field, $instance, $element, $input) {
  switch ($instance['widget']['type']) {
    case 'date_text':
    case 'date_text_repeat':
      $function = 'date_text_input_date';
      break;
    case 'date_popup':
    case 'date_popup_repeat':
      $function = 'date_popup_input_date';
      break;
    default:
      $function = 'date_select_input_date';
  }
  return $function($element, $input);
}