function environment_indicator_needs_js in Environment Indicator 8.2
Same name and namespace in other branches
- 7.2 environment_indicator.module \environment_indicator_needs_js()
Helper function to check if the JS needs to be included.
Return value
boolean TRUE if the extra javascript is needed.
1 call to environment_indicator_needs_js()
- environment_indicator_page_build in ./
environment_indicator.module - Implements hook_page_build().
File
- ./
environment_indicator.module, line 300 - Module implementation file.
Code
function environment_indicator_needs_js() {
return module_exists('toolbar') && user_access('access toolbar');
}