function elf_admin_settings in External Links Filter 6.2
Same name and namespace in other branches
- 5 elf.module \elf_admin_settings()
- 5.2 elf.module \elf_admin_settings()
1 string reference to 'elf_admin_settings'
- elf_menu in ./
elf.module - Implementation of hook_menu().
File
- ./
elf.module, line 42
Code
function elf_admin_settings() {
$form = array();
$form['elf_css'] = array(
'#type' => 'checkbox',
'#default_value' => variable_get('elf_css', TRUE),
'#title' => t('Add CSS to place image next to all external and mailto links'),
'#description' => t('When enabled, this will include a CSS file on each page that adds a !link_icon to each external link and a !mailto_icon to each mailto link by using the class "external-link" or "mailto-link".', array(
'!link_icon' => theme_image(drupal_get_path('module', 'elf') . '/elf.png'),
'!mailto_icon' => theme_image(drupal_get_path('module', 'elf') . '/mlf.png'),
)),
);
$form['elf_window'] = array(
'#type' => 'checkbox',
'#default_value' => variable_get('elf_window', FALSE),
'#title' => t('Add JS to open external links in a new window'),
'#description' => t('When enabled, this will include inline JS that causes all external links to open in a new browser window.'),
);
return system_settings_form($form);
}