You are here

function calendar_systems_field_info_alter in Calendar Systems 8

Same name and namespace in other branches
  1. 7 calendar_systems.module \calendar_systems_field_info_alter()
  2. 7.2 calendar_systems.module \calendar_systems_field_info_alter()

hook_field_info_alter

Parameters

$info:

File

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

Code

function calendar_systems_field_info_alter(&$info) {
  $field_type = 'datetime';
  if (isset($info[$field_type]['settings']) && $info[$field_type]['settings']) {
    $info[$field_type]['settings']['calendar_system'] = '';
  }
  $field_type = 'date';
  if (isset($info[$field_type]['settings']) && $info[$field_type]['settings']) {
    $info[$field_type]['settings']['calendar_system'] = '';
  }
  $field_type = 'datestamp';
  if (isset($info[$field_type]['settings']) && $info[$field_type]['settings']) {
    $info[$field_type]['settings']['calendar_system'] = '';
  }
}