You are here

function elf_admin_settings in External Links Filter 5.2

Same name and namespace in other branches
  1. 5 elf.module \elf_admin_settings()
  2. 6.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 an !icon next to each external and mailto link with the class "external-link" or "mailto-link".', array(
      '!icon' => theme_image(drupal_get_path('module', 'elf') . '/elf.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);
}