You are here

function text_field_diff_options_form in Diff 7.3

Provide a form for setting the field comparison options.

File

includes/text.inc, line 96
Provide diff field functions for the Text module.

Code

function text_field_diff_options_form($field_type, $settings) {
  $options_form = array();
  $options_form['compare_format'] = array(
    '#type' => 'checkbox',
    '#title' => t('Compare format'),
    '#default_value' => $settings['compare_format'],
    '#description' => t('This is only used if the "Text processing" instance settings are set to <em>Filtered text (user selects text format)</em>.'),
  );
  if ($field_type == 'text_with_summary') {
    $options_form['compare_summary'] = array(
      '#type' => 'checkbox',
      '#title' => t('Compare summary separately'),
      '#default_value' => $settings['compare_summary'],
      '#description' => t('This is only used if the "Summary input" option is checked in the instance settings.'),
    );
  }
  return $options_form;
}