function _filter_url_settings
_filter_url_settings($form, &$form_state, $filter, $format, $defaults)
Implements callback_filter_settings().
Provides settings for the URL filter.
See also
Related topics
File
- modules/filter/filter.module, line 1428
- Framework for handling the filtering of content.
Code
function _filter_url_settings($form, &$form_state, $filter, $format, $defaults) { $filter->settings += $defaults; $settings['filter_url_length'] = array( '#type' => 'textfield', '#title' => t('Maximum link text length'), '#default_value' => $filter->settings['filter_url_length'], '#size' => 5, '#maxlength' => 4, '#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.'), '#element_validate' => array('element_validate_integer_positive'), ); return $settings; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!filter!filter.module/function/_filter_url_settings/7.x