You are here

function role_theme_switcher_menu in Role Theme Switcher 5.2

Same name and namespace in other branches
  1. 6 role_theme_switcher.module \role_theme_switcher_menu()
  2. 7 role_theme_switcher.module \role_theme_switcher_menu()

Implementation of hook_menu().

File

./role_theme_switcher.module, line 22

Code

function role_theme_switcher_menu($may_cache) {
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/user/themes',
      'type' => MENU_NORMAL_ITEM,
      'title' => t('Role theme switcher'),
      'description' => t('Settings for role theme switcher.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'role_theme_switcher_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
    );
  }
  return $items;
}