You are here

function active_tags_field_widget_settings_form in Active Tags 7.2

Implements hook_field_widget_settings_form().

File

./active_tags.module, line 93
Active Tags widget for free tagging taxonomies

Code

function active_tags_field_widget_settings_form($field, $instance) {
  $widget = $instance['widget'];
  $settings = $widget['settings'];
  $options = array(
    'single' => t('Single mode: Include commas in tag'),
    'csv' => t('CSV mode: Multiple tags with comma seperation'),
  );
  $form['mode'] = array(
    '#type' => 'radios',
    '#title' => t('Entry mode'),
    '#default_value' => isset($settings['mode']) ? $settings['mode'] : 'single',
    '#options' => $options,
    '#required' => TRUE,
  );
  return $form;
}