function spoiler_init in Spoiler 7
Same name and namespace in other branches
- 6 spoiler.module \spoiler_init()
Implements hook_init().
File
- ./
spoiler.module, line 17 - Spoiler module: This module allows users to hide potential "spoiler" content by inserting them between [spoiler][/spoiler] tags. These tags will be converted to HTML by this filter. If JavaScript is available, then a button will be presented…
Code
function spoiler_init() {
$path = drupal_get_path('module', 'spoiler');
drupal_add_css($path . '/spoiler.css');
drupal_add_js($path . '/spoiler.js');
}