function availability_calendar_field_instance_settings_form in Availability Calendars 7.4
Same name and namespace in other branches
- 7.5 availability_calendar.field.inc \availability_calendar_field_instance_settings_form()
- 7.3 availability_calendar.field.inc \availability_calendar_field_instance_settings_form()
Implements hook_field_instance_settings_form(). @link http://api.drupal.org/api/drupal/modules--field_ui--field_ui.api.php/fun...
Availability Calendar field has no instance settings.
File
- ./
availability_calendar.field.inc, line 121
Code
function availability_calendar_field_instance_settings_form($field, $instance) {
$settings = $instance['settings'];
$form = array();
$form['allow_disable'] = array(
'#type' => 'checkbox',
'#title' => t('Allow to disable the calendar for a @type instance', array(
'@type' => $instance['bundle'],
)),
'#default_value' => $settings['allow_disable'],
'#weight' => -2,
);
$form['add_name'] = array(
'#type' => 'checkbox',
'#title' => t('Add a name property to the calendar for a @type instance', array(
'@type' => $instance['bundle'],
)),
'#description' => t('Useful to distinguish calendars when you have multiple calendar values for this field.'),
'#default_value' => $settings['add_name'],
'#weight' => -1,
);
return $form;
}