You are here

function text_field_diff_default_options in Diff 7.3

Provide default field comparison options.

File

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

Code

function text_field_diff_default_options($field_type) {

  // Overrides the global 'markdown' setting which does not escape HTML.
  $settings = array(
    'compare_format' => 0,
    'markdown' => 'drupal_html_to_text',
    'line_counter' => '',
  );
  if ($field_type == 'text_with_summary') {
    $settings += array(
      'compare_summary' => 0,
    );
  }
  return $settings;
}