You are here

function labjs_closure in LABjs 6

Overrides theme_closure().

We don't add script in footer if:

  • LABjs is enabled;
  • or both AdvAgg and advagg_closure are enabled.
2 string references to 'labjs_closure'
labjs_theme_registry_alter in ./labjs.module
Implementation of hook_theme_registry_alter().
labjs_update_6101 in ./labjs.install
Remove old variables

File

./labjs.module, line 175
LABjs module

Code

function labjs_closure($main = 0) {
  $footer = implode("\n", module_invoke_all('footer', $main));
  if (labjs_suppress() || !(module_exists('advagg') && variable_get('advagg_enabled', ADVAGG_ENABLED) && variable_get('advagg_closure', ADVAGG_CLOSURE))) {
    $footer .= drupal_get_js('footer');
  }
  return $footer;
}