1 filter.module _filter_url_settings($form, &$form_state, $filter, $format)

Implements callback_filter_settings().

Provides settings for the URL filter.

See also

filter_filter_info()

Related topics

File

core/modules/filter/filter.module, line 2177
Framework for handling the filtering of content.

Code

function _filter_url_settings($form, &$form_state, $filter, $format) {
  $settings['filter_url_length'] = array(
    '#type' => 'number',
    '#title' => t('Maximum link text length'),
    '#default_value' => $filter->settings['filter_url_length'],
    '#max' => 100000,
    '#min' => 1,
    '#field_suffix' => t('characters'),
    '#description' => t('URLs longer than this number of characters will be truncated to prevent long strings that break formatting. The link itself will be retained; just the text portion of the link will be truncated.'),
  );
  return $settings;
}