function devel_menu
Implements hook_menu().
File
-
./
devel.module, line 57
Code
function devel_menu() {
// Note: we can't dynamically append destination to querystring.
// Do so at theme layer. Fix in D7?
$items['devel/cache/clear'] = array(
'title' => 'Clear cache',
'page callback' => 'devel_cache_clear',
'description' => 'Clear the CSS cache and all database cache tables which store page, node, theme and variable caches.',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/reference'] = array(
'title' => 'Function reference',
'description' => 'View a list of currently defined user functions with documentation links.',
'page callback' => 'devel_function_reference',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/reinstall'] = array(
'title' => 'Reinstall modules',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_reinstall',
),
'description' => 'Run hook_uninstall() and then hook_install() for a given module.',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/menu/reset'] = array(
'title' => 'Rebuild menus',
'description' => 'Rebuild menu based on hook_menu() and revert any custom changes. All menu items return to their default settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_menu_rebuild',
),
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/menu/item'] = array(
'title' => 'Menu item',
'description' => 'Details about a given menu item.',
'page callback' => 'devel_menu_item',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/variable'] = array(
'title' => 'Variable editor',
'description' => 'Edit and delete site variables.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_variable_form',
),
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
// We don't want the abbreviated version provided by status report.
$items['devel/phpinfo'] = array(
'title' => 'PHPinfo()',
'description' => 'View your server\'s PHP configuration',
'page callback' => 'devel_phpinfo',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/php'] = array(
'title' => 'Execute PHP Code',
'description' => 'Execute some PHP code',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_execute_form',
),
'access arguments' => array(
'execute php code',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/theme/registry'] = array(
'title' => 'Theme registry',
'description' => 'View a list of available theme functions across the whole site.',
'page callback' => 'devel_theme_registry',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/entity/info'] = array(
'title' => 'Entity info',
'description' => 'View entity information across the whole site.',
'page callback' => 'devel_entity_info_page',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/field/info'] = array(
'title' => 'Field info',
'description' => 'View fields information across the whole site.',
'page callback' => 'devel_field_info_page',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/elements'] = array(
'title' => 'Hook_elements()',
'description' => 'View the active form/render elements for this site.',
'page callback' => 'devel_elements_page',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/variable/edit/%'] = array(
'title' => 'Variable editor',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_variable_edit',
3,
),
'access arguments' => array(
'access devel information',
),
'type' => MENU_CALLBACK,
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/session'] = array(
'title' => 'Session viewer',
'description' => 'List the contents of $_SESSION.',
'page callback' => 'devel_session',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/switch'] = array(
'title' => 'Switch user',
'page callback' => 'devel_switch_user',
'access callback' => '_devel_switch_user_access',
'access arguments' => array(
2,
),
'type' => MENU_CALLBACK,
'file' => 'devel.pages.inc',
'menu_name' => 'devel',
);
$items['devel/explain'] = array(
'title' => 'Explain query',
'page callback' => 'devel_querylog_explain',
'description' => 'Run an EXPLAIN on a given query. Used by query log',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'type' => MENU_CALLBACK,
);
$items['devel/arguments'] = array(
'title' => 'Arguments query',
'page callback' => 'devel_querylog_arguments',
'description' => 'Return a given query, with arguments instead of placeholders. Used by query log',
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'type' => MENU_CALLBACK,
);
$items['devel/run-cron'] = array(
'title' => 'Run cron',
'page callback' => 'system_run_cron',
'access arguments' => array(
'administer site configuration',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
'menu_name' => 'devel',
);
// Duplicate path in 2 different menus. See http://drupal.org/node/601788.
$items['devel/settings'] = array(
'title' => 'Devel settings',
'description' => 'Helper functions, pages, and blocks to assist Drupal developers. The devel blocks can be managed via the <a href="/admin/structure/block">block administration</a> page.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'devel.admin.inc',
'menu_name' => 'devel',
);
$items['admin/config/development/devel'] = array(
'title' => 'Devel settings',
'description' => 'Helper functions, pages, and blocks to assist Drupal developers. The devel blocks can be managed via the <a href="/admin/structure/block">block administration</a> page.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_admin_settings',
),
'file' => 'devel.admin.inc',
'access arguments' => array(
'administer site configuration',
),
);
$items['node/%node/devel'] = array(
'title' => 'Devel',
'page callback' => 'devel_load_object',
'page arguments' => array(
'node',
1,
),
'access arguments' => array(
'access devel information',
),
'type' => MENU_LOCAL_TASK,
'file' => 'devel.pages.inc',
'weight' => 100,
);
$items['node/%node/devel/load'] = array(
'title' => 'Load',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['node/%node/devel/render'] = array(
'title' => 'Render',
'page callback' => 'devel_render_object',
'page arguments' => array(
'node',
1,
),
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 100,
);
$items['comment/%comment/devel'] = array(
'title' => 'Devel',
'page callback' => 'devel_load_object',
'page arguments' => array(
'comment',
1,
),
'access arguments' => array(
'access devel information',
),
'type' => MENU_LOCAL_TASK,
'file' => 'devel.pages.inc',
'weight' => 100,
);
$items['comment/%comment/devel/load'] = array(
'title' => 'Load',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['comment/%comment/devel/render'] = array(
'title' => 'Render',
'page callback' => 'devel_render_object',
'page arguments' => array(
'comment',
1,
),
'access arguments' => array(
'access devel information',
),
'type' => MENU_LOCAL_TASK,
'file' => 'devel.pages.inc',
'weight' => 100,
);
$items['user/%user/devel'] = array(
'title' => 'Devel',
'page callback' => 'devel_load_object',
'page arguments' => array(
'user',
1,
),
'access arguments' => array(
'access devel information',
),
'type' => MENU_LOCAL_TASK,
'file' => 'devel.pages.inc',
'weight' => 100,
);
$items['user/%user/devel/load'] = array(
'title' => 'Load',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['user/%user/devel/render'] = array(
'title' => 'Render',
'page callback' => 'devel_render_object',
'page arguments' => array(
'user',
1,
),
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 100,
);
$items['taxonomy/term/%taxonomy_term/devel'] = array(
'title' => 'Devel',
'page callback' => 'devel_load_object',
'page arguments' => array(
'taxonomy_term',
2,
'term',
),
'access arguments' => array(
'access devel information',
),
'file' => 'devel.pages.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 100,
);
$items['taxonomy/term/%taxonomy_term/devel/load'] = array(
'title' => 'Load',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['taxonomy/term/%taxonomy_term/devel/render'] = array(
'title' => 'Render',
'page callback' => 'devel_render_object',
'page arguments' => array(
'taxonomy_term',
2,
'term',
),
'access arguments' => array(
'access devel information',
),
'type' => MENU_LOCAL_TASK,
'file' => 'devel.pages.inc',
'weight' => 100,
);
return $items;
}