You are here

function styleguide_access_check in Style Guide 7

Same name and namespace in other branches
  1. 6 styleguide.module \styleguide_access_check()

Menu access callback.

1 call to styleguide_access_check()
styleguide_system_themes_page_alter in ./styleguide.module
Implements hook_system_theme_page_alter().
1 string reference to 'styleguide_access_check'
styleguide_menu in ./styleguide.module
Implements hook_menu().

File

./styleguide.module, line 111

Code

function styleguide_access_check($theme) {
  if (!user_access('view style guides')) {
    return FALSE;
  }
  if (drupal_theme_access($theme)) {
    return TRUE;
  }
  return FALSE;
}