I'm a fan of Devel, it's an awesome module. My problem is I don't use Menu module on my Drupal site but I'm forced to have it enabled if I want to use Devel.

Is there a chance this dependency could be removed?

Thanks

CommentFileSizeAuthor
#2 devel.menu_.2.patch2.67 KBsun
#1 devel.menu_.1.patch1.65 KBsun
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Category: feature » task
Status: Active » Needs review
FileSize
1.65 KB

I do not understand that either.

sun’s picture

Title: Remove the need for menu module » Remove dependency on Menu module
FileSize
2.67 KB

Completed this patch by adding hook_modules_installed() in order to lazy-add the menu in case Menu module is installed later.

salvis’s picture

Status: Needs review » Closed (won't fix)

I don't understand what the point of this patch is. Much of the functionality of Devel is in its menu and installing it without menu.module would cripple it. I don't care to see support requests from people who can't find things because they don't have menu.module enabled.

If you install Devel, then I don't see why you'd worry about installing Menu.

sun’s picture

Status: Closed (won't fix) » Needs review

Well, there are site concepts that simply don't need Menu module to be installed. Devel module does not require Menu module; it merely exposes a custom menu if it's there. Devel's router paths, local tasks, as well as developer functions are working fine without the menu. And somewhat related, most users of admin_menu usually don't enable Devel's menu block at all, as most of the functionality is exposed in the admin menu already.

moshe weitzman’s picture

IIRC uninstall requires menu

sun’s picture

The patch already takes devel_uninstall() into account:

+++ devel.install	26 Jan 2011 01:49:09 -0000
@@ -41,8 +45,11 @@ function devel_uninstall() {
   // Delete the development menu.
-  $devel_menu = menu_load('devel');
-  menu_delete($devel_menu);
+  if (module_exists('menu')) {
+    if ($devel_menu = menu_load('devel')) {
+      menu_delete($devel_menu);
+    }
+  }

and even uses hook_modules_installed() to act if Menu module is installed later on.

moshe weitzman’s picture

Status: Needs review » Needs work

Will we get errors if menu module gets disabled and then re-enabled? If not, this looks good to go.

salvis’s picture

Well, then I'd ask you to remove the dependency from devel_node_access, too, please.

moshe weitzman’s picture

Status: Needs work » Fixed

Decided to commit this after some light testing. Pls reopen if there are problems.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.