You are here

function hook_restrict_ip_whitelisted_js_keys in Restrict IP 7.2

Same name and namespace in other branches
  1. 8.2 restrict_ip.api.php \hook_restrict_ip_whitelisted_js_keys()
  2. 8 restrict_ip.api.php \hook_restrict_ip_whitelisted_js_keys()
  3. 3.x restrict_ip.api.php \hook_restrict_ip_whitelisted_js_keys()

Add js keys to be whitelisted even when the user has been denied access.

Return value

array An array of keys representing javascripts to be allowed even when the user is denied access by IP. These keys can be found by as the keys in hook_js_alter().

1 invocation of hook_restrict_ip_whitelisted_js_keys()
restrict_ip_js_alter in ./restrict_ip.module
Implements hook_js_alter().

File

./restrict_ip.api.php, line 30
Hooks provided by the Restrict IP module.

Code

function hook_restrict_ip_whitelisted_js_keys() {
  return array(
    'misc/jquery.once.js',
  );
}