You are here

function country_field_field_instance_settings_form in Country Field 7

Implements hook_field_instance_settings_form().

File

./country_field.module, line 46
Contains field hook implementations for a country select field.

Code

function country_field_field_instance_settings_form($field, $instance) {
  return array(
    'countries' => array(
      '#type' => 'select',
      '#title' => t('Limit to countries'),
      '#description' => t('Select a list of countries to be exposed as field options. If none is selected, this field instance will expose all countries.'),
      '#default_value' => $instance['settings']['countries'],
      '#options' => _country_field_countries(),
      '#multiple' => TRUE,
      '#size' => 8,
    ),
  );
}