You are here

function site_banner_check_if_debug_mode_active in Site Banner 7

Determines if the debug mode by user permissions and debug mode status.

Return value

bool whether debug mode is active or not.

3 calls to site_banner_check_if_debug_mode_active()
site_banner_build_banner in ./site_banner.module
Builds the site banner and implementing the context hooks.
site_banner_generate_context_banner_text_from_contexts in ./site_banner.module
Returns new banner text by collapsing all active contexts into string.
site_banner_html_head_alter in ./site_banner.module
Implements hook_html_head_alter().

File

./site_banner.module, line 459
Main module file implementing callbacks for the site banner module.

Code

function site_banner_check_if_debug_mode_active() {
  return user_access('manage site banner settings') && variable_get('site_banner_debug_status', FALSE);
}