function _no_nbsp_settings in No Non-breaking Space Filter 7
Implements callback_filter_settings().
Provides settings for the no_nbsp filter.
See also
1 string reference to '_no_nbsp_settings'
- no_nbsp_filter_info in ./
no_nbsp.module - Implements hook_filter_info().
File
- ./
no_nbsp.module, line 146 - A filter module that deletes all non-breaking spaces.
Code
function _no_nbsp_settings($form, &$form_state, $filter, $format, $defaults) {
$filter->settings += $defaults;
$settings['preserve_placeholders'] = array(
'#type' => 'checkbox',
'#title' => t('Preserve placeholders.'),
'#default_value' => isset($filter->settings['preserve_placeholders']) ? $filter->settings['preserve_placeholders'] : FALSE,
'#description' => t('A placeholder non-breaking space is surrounded by a HTML tag, for example <p>&nbsp;</p>.'),
);
return $settings;
}