Skip to content
Snippets Groups Projects
Commit 0e874aa5 authored by soxofaan's avatar soxofaan
Browse files

backported to Drupal 5

parent 3181b3b2
No related branches found
No related tags found
No related merge requests found
......@@ -2,4 +2,4 @@
name = "Module Paths"
description = "Provides a page and a block showing the paths of the enabled modules"
package = "Development"
core = 6.x
core = 5.x
......@@ -4,15 +4,18 @@
/**
* Implementation of hook_menu().
*/
function module_paths_menu() {
function module_paths_menu($may_cache) {
$items = array();
$items['module_paths'] = array(
'title' => 'Module paths',
'description' => 'View the paths of the enabled modules.',
'page callback' => 'module_paths_page',
'access arguments' => array('view module paths information'),
if ($may_cache) {
$items[] = array(
'path' => 'module_paths',
'title' => t('Module paths'),
'description' => t('View the paths of the enabled modules.'),
'callback' => 'module_paths_page',
'access' => user_access('view module paths information'),
'type' => MENU_CALLBACK,
);
}
return $items;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment