You are here

function _styleswitcher_config_theme_access in Style Switcher 6.2

Same name and namespace in other branches
  1. 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

styleswitcher_menu()

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);
}