You are here

function _js_inject_active_rules in JS injector 7.2

Store and retrieve active rules matched in js_injector_init

2 calls to _js_inject_active_rules()
js_injector_init in ./js_injector.module
Implements hook_init().
js_injector_page_build in ./js_injector.module
Implements hook_page_build().

File

./js_injector.module, line 195
js_injector.module

Code

function _js_inject_active_rules($rule = NULL) {
  $_rules =& drupal_static(__FUNCTION__);
  if (!$rule) {
    return $_rules;
  }
  $_rules[] = $rule;
}