You are here

function taxonomy_field_diff_options_form in Diff 7.3

Provide a form for setting the field comparison options.

File

includes/taxonomy.inc, line 89
Implements pusdeo-hook hook_field_diff_view() for the Taxonomy module.

Code

function taxonomy_field_diff_options_form($field_type, $settings) {
  $options_form = array();
  $options_form['show_id'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show term ID'),
    '#default_value' => $settings['show_id'],
  );
  $options_form['sort'] = array(
    '#type' => 'radios',
    '#title' => t('Sort'),
    '#options' => array(
      DIFF_SORT_NONE => t('No sort'),
      DIFF_SORT_VALUE => t('Sort'),
      DIFF_SORT_CUSTOM => t('Sort if free tagging field'),
    ),
    '#default_value' => $settings['sort'],
  );
  return $options_form;
}