You are here

function elf_menu in External Links Filter 5.3

Same name and namespace in other branches
  1. 5 elf.module \elf_menu()
  2. 5.2 elf.module \elf_menu()
  3. 6.3 elf.module \elf_menu()
  4. 6.2 elf.module \elf_menu()
  5. 7.3 elf.module \elf_menu()

Implementation of hook_menu().

File

./elf.module, line 6

Code

function elf_menu($may_cache) {
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/elf',
      'title' => t('External links filter'),
      'description' => t('Configure external links filter'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'elf_settings',
      ),
      'access' => user_access('administer site configuration'),
    );
  }
  else {
    drupal_add_css(drupal_get_path('module', 'elf') . '/elf.css');
  }
  return $items;
}