You are here

function spoiler_init in Spoiler 6

Same name and namespace in other branches
  1. 7 spoiler.module \spoiler_init()

Implementation of 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');
}