summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormoshe weitzman2010-12-09 02:35:32 +0000
committermoshe weitzman2010-12-09 02:35:32 +0000
commit4374b9c72e418f400027b0d61b9bf4474d347096 (patch)
tree04e428c981df0c8024193ed0f1ee77ff6441744b
parent379b8e8c1b3a3a53f7f56d7dbc1dfb41f1e3859e (diff)
#992940 by Dave Reid. Set devel pages in hook_admin_paths
-rw-r--r--devel.module18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel.module b/devel.module
index f8637a2..ff1f511 100644
--- a/devel.module
+++ b/devel.module
@@ -308,6 +308,24 @@ function devel_menu() {
return $items;
}
+/**
+ * Implements hook_admin_paths().
+ */
+function devel_admin_paths() {
+ $paths = array(
+ 'devel/*' => TRUE,
+ 'node/*/devel' => TRUE,
+ 'node/*/devel/*' => TRUE,
+ 'comment/*/devel' => TRUE,
+ 'comment/*/devel/*' => TRUE,
+ 'user/*/devel' => TRUE,
+ 'user/*/devel/*' => TRUE,
+ 'taxonomy/term/*/devel' => TRUE,
+ 'taxonomy/term/*/devel/*' => TRUE,
+ );
+ return $paths;
+}
+
function devel_menu_need_destination() {
return array('devel/cache/clear', 'devel/reinstall', 'devel/menu/reset', 'devel/variable', 'admin/reports/status/run-cron');
}