_filter_url_settings

Versions
5 – 6
_filter_url_settings($format)
7
_filter_url_settings($form, &$form_state, $filter, $defaults)

Settings for URL filter.

▾ 1 function calls _filter_url_settings()

filter_filter in modules/filter/filter.module
Implementation of hook_filter(). Contains a basic set of essential filters.

Code

modules/filter/filter.module, line 1108

<?php
function _filter_url_settings($format) {
  $form['filter_urlfilter'] = array(
    '#type' => 'fieldset',
    '#title' => t('URL filter'),
    '#collapsible' => TRUE,
  );
  $form['filter_urlfilter']['filter_url_length_'. $format] = array(
    '#type' => 'textfield',
    '#title' => t('Maximum link text length'),
    '#default_value' => variable_get('filter_url_length_'. $format, 72),
    '#maxlength' => 4,
    '#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 $form;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.