function addtocalendar_field_formatter_settings_form_alter in Add To Calendar Button (AddEvent.com) 7.2
Same name and namespace in other branches
- 7 addtocalendar.module \addtocalendar_field_formatter_settings_form_alter()
Implements hook_field_formatter_settings_form_alter().
File
- ./
addtocalendar.module, line 35 - Contains module code.
Code
function addtocalendar_field_formatter_settings_form_alter(&$settings_form, $context) {
if ($context['instance']['display'][$context['view_mode']]['type'] == 'date_default') {
$display = $context['instance']['display'][$context['view_mode']];
$settings = $display['settings'];
$field_list = field_info_instances($context['form']['#entity_type'], $context['form']['#bundle']);
// Add settings form.
module_load_include('inc', 'addtocalendar', 'includes/addtocalendar');
$settings_form = addtocalendar_settings_form($settings, $field_list);
}
}