You are here

function themekey_debug_menu in ThemeKey 7

Same name and namespace in other branches
  1. 6.4 themekey_debug.module \themekey_debug_menu()
  2. 6.2 themekey_debug.module \themekey_debug_menu()
  3. 6.3 themekey_debug.module \themekey_debug_menu()
  4. 7.3 themekey_debug.module \themekey_debug_menu()
  5. 7.2 themekey_debug.module \themekey_debug_menu()

Implements hook_menu().

File

./themekey_debug.module, line 75
Provides a debug mode for module ThemeKey.

Code

function themekey_debug_menu() {
  $items = array();
  $items['admin/config/user-interface/themekey/settings/debug'] = array(
    'title' => 'Debug',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer themekey settings',
    ),
    'file' => 'themekey_debug_admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'themekey_debug_settings_form',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  return $items;
}