function _footnotes_settings in Footnotes 6.2
Same name and namespace in other branches
- 7.3 footnotes.module \_footnotes_settings()
- 7.2 footnotes.module \_footnotes_settings()
Options for the Footnotes filter.
This has currently 1 setting, the feature to collapse together footnotes with identical content is an option.
1 call to _footnotes_settings()
- footnotes_filter in ./
footnotes.module - Implementation of hook_filter().
File
- ./
footnotes.module, line 73 - The Footnotes module is a filter that can be used to insert automatically numbered footnotes into Drupal texts.
Code
function _footnotes_settings($format) {
$form['footnotes'] = array(
'#type' => 'fieldset',
'#title' => t('Footnotes'),
'#collapsible' => TRUE,
);
$form['footnotes']['footnotes_collapse_' . $format] = array(
'#type' => 'checkbox',
'#title' => t('Collapse footnotes with same content'),
'#default_value' => variable_get('footnotes_collapse_' . $format, 0),
'#description' => t('If two footnotes have the exact same content, they will be collapsed into one as if using the same value="" attribute.'),
);
return $form;
}