You are here

function tinybrowser_init in TinyBrowser 7

Implements hook_init().

File

./tinybrowser.module, line 89

Code

function tinybrowser_init() {
  if (module_exists("tinytinymce") || module_exists("fckeditor") || module_exists("ckeditor")) {
    if (tinybrowser_access()) {
      tinybrowser_set_js_variables();
      drupal_add_js(drupal_get_path('module', 'tinybrowser') . '/tinybrowser/tb_tinymce.js');
      $_SESSION['tinybrowser_module'] = TRUE;
    }
  }
}