function _styleswitcher_config_theme_access in Style Switcher 6.2
Same name and namespace in other branches
- 7.2 styleswitcher.module \_styleswitcher_config_theme_access()
Access callback: Allows only admin and only for enabled themes.
Parameters
string|object $theme: Either the name of a theme or a full theme object.
See also
1 string reference to '_styleswitcher_config_theme_access'
- styleswitcher_menu in ./
styleswitcher.module - Implements hook_menu().
File
- ./
styleswitcher.module, line 271 - Module's hooks implementations and helper functions.
Code
function _styleswitcher_config_theme_access($theme) {
return user_access('administer styleswitcher') && _styleswitcher_theme_access($theme);
}