You are here

function shortener_init in Shorten URLs 7

Same name and namespace in other branches
  1. 6 shortener/shortener.module \shortener_init()
  2. 7.2 shortener/shortener.module \shortener_init()

Implements hook_init().

File

shortener/shortener.module, line 11
Provides an input filter that replaces URLs with a shortened version.

Code

function shortener_init() {

  // Although this is wasteful on pages that don't need it, it is generally
  // more efficient than disabling caching for input formats using this filter.
  $path = drupal_get_path('module', 'shortener');
  drupal_add_css($path . '/shortener.css');
  drupal_add_js($path . '/shortener.js');
}