You are here

function elf_init in External Links Filter 7.3

Same name and namespace in other branches
  1. 6.3 elf.module \elf_init()
  2. 6.2 elf.module \elf_init()

Implement hook_init().

File

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

Code

function elf_init() {
  require_once 'includes/common.inc';
  $path = drupal_get_path('module', 'elf');
  drupal_add_css("{$path}/css/elf.css");
  if (variable_get('elf_window', FALSE)) {
    drupal_add_js("{$path}/js/elf.js");
  }
}