You are here

function jstools_footer in Javascript Tools 5

Implementation of hook_footer().

Override collapse.js to make it reattachable.

File

./jstools.module, line 13
Provide common methods used by jstools package modules.

Code

function jstools_footer() {
  $javascript = drupal_add_js();
  $path = drupal_get_path('module', 'jstools');
  if (isset($javascript['module']) && isset($javascript['module'][$path . '/jstools.js']) && isset($javascript['module']['misc/collapse.js']) && !module_exists('jquery_update')) {
    drupal_add_js(drupal_get_path('module', 'jstools') . '/collapse.js');
  }
}