You are here

function text_resize_init in Text Resize 6

Implementation of hook_init().

File

./text_resize.module, line 196
Creates a small block with jQuery links that resize text within the BODY tag.

Code

function text_resize_init() {
  drupal_add_css(drupal_get_path('module', 'text_resize') . '/text_resize.css');
  drupal_add_js(drupal_get_path('module', 'text_resize') . '/jquery.cookie.js', 'file');
  drupal_add_js("var text_resize_scope = " . drupal_to_js(_get_text_resize_scope()) . ";\n    var text_resize_minimum = " . drupal_to_js(_get_text_resize_minimum()) . ";\n    var text_resize_maximum = " . drupal_to_js(_get_text_resize_maximum()) . ";\n    var text_resize_line_height_allow = " . drupal_to_js(_get_text_resize_line_height_allow()) . ";\n    var text_resize_line_height_min = " . drupal_to_js(_get_text_resize_line_height_min()) . ";\n    var text_resize_line_height_max = " . drupal_to_js(_get_text_resize_line_height_max()) . ";", 'inline');
  drupal_add_js(drupal_get_path('module', 'text_resize') . '/text_resize.js', 'file');
}