function _footnotes_settings in Footnotes 7.3
Same name and namespace in other branches
- 6.2 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 string reference to '_footnotes_settings'
- footnotes_filter_info in ./
footnotes.module - Implementation of hook_filter_info().
File
- ./
footnotes.module, line 59 - The Footnotes module is a filter that can be used to insert automatically numbered footnotes into Drupal texts.
Code
function _footnotes_settings($form, &$form_state, $filter, $format, $defaults, $filters) {
$settings['footnotes_collapse'] = array(
'#type' => 'checkbox',
'#title' => t('Collapse footnotes with identical content'),
'#default_value' => isset($filter->settings['footnotes_collapse']) ? $filter->settings['footnotes_collapse'] : $defaults['footnotes_collapse'],
'#description' => t('If two footnotes have the exact same content, they will be collapsed into one as if using the same value="" attribute.'),
);
return $settings;
}