function themekey_menu in ThemeKey 6.2
Same name and namespace in other branches
- 6.4 themekey.module \themekey_menu()
- 6 themekey.module \themekey_menu()
- 6.3 themekey.module \themekey_menu()
- 7.3 themekey.module \themekey_menu()
- 7 themekey.module \themekey_menu()
- 7.2 themekey.module \themekey_menu()
Implements hook_menu().
File
- ./
themekey.module, line 51 - ThemeKey is meant to be a generic theme switching module.
Code
function themekey_menu() {
$items = array();
$items['admin/settings/themekey'] = array(
'title' => 'ThemeKey',
'description' => 'Map themes to Drupal paths or object properties.',
'access callback' => 'user_access',
'access arguments' => array(
'administer theme assignments',
),
'file' => 'themekey_admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'themekey_rule_chain_form',
),
);
$items['admin/settings/themekey/properties'] = array(
'title' => 'Theme Switching Rule Chain',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['admin/settings/themekey/properties/delete'] = array(
'title' => 'Delete ThemeKey Property',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'themekey_admin_delete_rule_confirm',
1,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer theme assignments',
),
'file' => 'themekey_admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/settings/themekey/settings'] = array(
'title' => 'Settings',
'access callback' => 'user_access',
'access arguments' => array(
'administer themekey settings',
),
'file' => 'themekey_admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'themekey_settings_form',
),
'type' => MENU_LOCAL_TASK,
'weight' => 5,
);
$items['admin/settings/themekey/settings/general'] = array(
'title' => 'General',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
return $items;
}