You are here

function elf_filter_settings in External Links Filter 7.3

Hook_filter_info() settings callback.

See also

elf_filter_info()

1 string reference to 'elf_filter_settings'
elf_filter_info in ./elf.module
Implement hook_filter().

File

./elf.module, line 62
Adds an icon to external and mailto links.

Code

function elf_filter_settings(array $form, array &$form_state, stdClass $filter, stdClass $format, array $defaults) {
  $settings['elf_nofollow'] = array(
    '#type' => 'checkbox',
    '#title' => t('Add rel="nofollow" to all external links'),
    '#default_value' => isset($filter->settings['elf_nofollow']) ? $filter->settings['elf_nofollow'] : $defaults['elf_nofollow'],
  );
  return $settings;
}