function calendar_systems_field_formatter_info_alter in Calendar Systems 7.2
Same name and namespace in other branches
- 8 calendar_systems.module \calendar_systems_field_formatter_info_alter()
- 7 calendar_systems.module \calendar_systems_field_formatter_info_alter()
hook_field_formatter_info_alter
Parameters
$info:
File
- ./
calendar_systems.module, line 778 - Contains Calendar Systems hook implementations and helpers.
Code
function calendar_systems_field_formatter_info_alter(&$info) {
// Add a setting to a formatter type.
if (isset($info['date_default'])) {
if (!isset($info['date_default']['settings']) || !is_array($info['date_default']['settings'])) {
$info['date_default']['settings'] = array();
}
$info['date_default']['settings'] += array(
'calendar_system' => '',
);
}
if (isset($info['date_plain'])) {
if (!isset($info['date_plain']['settings']) || !is_array($info['date_plain']['settings'])) {
$info['date_plain']['settings'] = array();
}
$info['date_plain']['settings'] += array(
'calendar_system' => '',
);
}
}