You are here

function field_nif_field_instance_settings_form in Field NIF 7

Implements hook_field_instance_settings_form().

File

./field_nif.module, line 167

Code

function field_nif_field_instance_settings_form($field, $instance) {
  $settings = $instance['settings'];
  $form['supported_numbers'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Supported id number types'),
    '#default_value' => $settings['supported_numbers'],
    '#options' => array(
      'nif' => t('NIF'),
      'cif' => t('CIF'),
      'nie' => t('NIE'),
    ),
  );
  return $form;
}