You are here

function bat_options_field_settings_form in Booking and Availability Management Tools for Drupal 7

Implements hook_field_settings_form().

File

modules/bat_options/bat_options.module, line 212

Code

function bat_options_field_settings_form($field, $instance, $has_data) {
  $settings = $field['settings'];
  $form = array();
  $form['per_person'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable "Per person" options'),
    '#default_value' => isset($settings['per_person']) ? $settings['per_person'] : 0,
  );
  return $form;
}