You are here

function themekey_debug_menu in ThemeKey 6.2

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

Implements hook_menu().

File

./themekey_debug.module, line 61
provides a debug mode for module ThemeKey.

Code

function themekey_debug_menu() {
  $items = array();
  $items['admin/settings/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;
}