function _footnotes_filter_url_settings in Footnotes 6.2
Same name and namespace in other branches
- 5.2 footnotes.module \_footnotes_filter_url_settings()
Settings for URL filter.
1 call to _footnotes_filter_url_settings()
- footnotes_filter in ./
footnotes.module - Implementation of hook_filter().
File
- ./
footnotes.module, line 621 - The Footnotes module is a filter that can be used to insert automatically numbered footnotes into Drupal texts.
Code
function _footnotes_filter_url_settings($format) {
$form['footnotes_filter_urlfilter'] = array(
'#type' => 'fieldset',
'#title' => t('Better URL filter'),
'#collapsible' => TRUE,
);
$form['footnotes_filter_urlfilter']['footnotes_filter_url_length_' . $format] = array(
'#type' => 'textfield',
'#title' => t('Maximum link text length'),
'#default_value' => variable_get('footnotes_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;
}