You are here

function list_field_diff_options_form in Diff 7.3

Provide a form for setting the field comparison options.

File

includes/list.inc, line 58
Provide diff field functions for the List module.

Code

function list_field_diff_options_form($field_type, $settings) {
  $options_form = array();
  $options_form['compare'] = array(
    '#type' => 'radios',
    '#title' => t('Comparison method'),
    '#options' => array(
      'label' => t('Label'),
      'key' => t('Key'),
      'both' => t('Label (key)'),
    ),
    '#default_value' => $settings['compare'],
  );
  return $options_form;
}