function hook_restrict_ip_whitelisted_js_keys in Restrict IP 8
Same name and namespace in other branches
- 8.2 restrict_ip.api.php \hook_restrict_ip_whitelisted_js_keys()
- 7.2 restrict_ip.api.php \hook_restrict_ip_whitelisted_js_keys()
- 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
An array of keys representing javascript files 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 - Implementation of hook_js_alter()
File
- ./
restrict_ip.api.php, line 31 - Hooks provided by the Restrict IP module.
Code
function hook_restrict_ip_whitelisted_js_keys() {
return [
'core/assets/vendor/jquery/jquery.js',
];
}