You are here

function external_init in External New Tab 7

Same name and namespace in other branches
  1. 6 external.module \external_init()

Implement hook_init().

File

./external.module, line 33

Code

function external_init() {
  if (external_active() && variable_get('external_enabled', TRUE)) {
    drupal_add_js(array(
      'externalpdf' => variable_get('external_docs_enabled', FALSE),
    ), 'setting');
    drupal_add_js(drupal_get_path('module', 'external') . '/external.js');
  }
}