You are here

function calendar_systems_element_info_alter in Calendar Systems 7.2

Same name and namespace in other branches
  1. 8.3 calendar_systems.module \calendar_systems_element_info_alter()
  2. 8 calendar_systems.module \calendar_systems_element_info_alter()
  3. 7 calendar_systems.module \calendar_systems_element_info_alter()

Parameters

$type:

File

./calendar_systems.module, line 896
Contains Calendar Systems hook implementations and helpers.

Code

function calendar_systems_element_info_alter(&$type) {
  if (isset($type['date'])) {
    $type['date']['#process'] = array(
      '_calendar_systems_element_date_process',
    );
    $type['date']['#element_validate'] = array_merge(array(
      'calendar_systems_date_validate',
    ), (array) @$type['#element_validate']);
  }
  if (isset($type['date_popup'])) {
    $type['date_popup']['#element_validate'] = array_merge(array(
      'calendar_systems_date_validate',
    ), (array) @$type['#element_validate']);
  }
  if (isset($type['date_select'])) {
    $type['date_select']['#element_validate'] = array_merge(array(
      'calendar_systems_date_validate',
    ), (array) @$type['#element_validate']);
  }
  if (isset($type['date_text'])) {
    $type['date_text']['#element_validate'] = array_merge(array(
      'calendar_systems_date_validate',
    ), (array) @$type['#element_validate']);
  }
}