function shortener_init in Shorten URLs 6
Same name and namespace in other branches
- 7.2 shortener/shortener.module \shortener_init()
- 7 shortener/shortener.module \shortener_init()
Implementation of 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');
}