function styleguide_access_check in Style Guide 6
Same name and namespace in other branches
- 7 styleguide.module \styleguide_access_check()
Menu access callback.
1 call to styleguide_access_check()
- styleguide_form_system_themes_form_alter in ./
styleguide.module - Implements hook_form_FORM_ID_alter().
1 string reference to 'styleguide_access_check'
- styleguide_menu in ./
styleguide.module - Implements hook_menu().
File
- ./
styleguide.module, line 72
Code
function styleguide_access_check($theme) {
if (!user_access('view style guides')) {
return FALSE;
}
if (_system_themes_access($theme)) {
return TRUE;
}
return FALSE;
}