You are here

function phone_field_settings_form in Phone 7

Same name and namespace in other branches
  1. 7.2 phone.module \phone_field_settings_form()

Implements hook_field_settings_form().

File

./phone.module, line 87

Code

function phone_field_settings_form($field, $instance, $has_data) {
  $settings = $field['settings'];
  $form = array();
  $form['country'] = array(
    '#type' => 'select',
    '#title' => t('Country'),
    '#options' => phone_countries(),
    '#default_value' => isset($settings['country']) ? $settings['country'] : NULL,
    '#description' => t('Which country-specific rules should this field be validated against and formatted according to.'),
    '#disabled' => $has_data,
    '#required' => TRUE,
  );
  return $form;
}