You are here

function bootstrap_library_check_theme in Bootstrap Library 7

1 call to bootstrap_library_check_theme()
bootstrap_library_init in ./bootstrap_library.module
Implements hook_init().

File

./bootstrap_library.module, line 110
Primarily Drupal hooks.

Code

function bootstrap_library_check_theme() {
  global $theme_key;
  $settings = variable_get('bootstrap_library_settings');
  $visibility = $settings['theme']['visibility'];
  $theme_match = in_array($theme_key, $settings['theme']['themes']);
  $theme_match = !($visibility xor $theme_match);
  $visibility = $settings['theme']['visibility'];
  return $theme_match;
}