Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | devel.menu_.2.patch | 2.67 KB | sun |
#1 | devel.menu_.1.patch | 1.65 KB | sun |
Comments
Comment #1
sunI do not understand that either.
Comment #2
sunCompleted this patch by adding hook_modules_installed() in order to lazy-add the menu in case Menu module is installed later.
Comment #3
salvisI 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.
Comment #4
sunWell, 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.
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedIIRC uninstall requires menu
Comment #6
sunThe patch already takes devel_uninstall() into account:
and even uses hook_modules_installed() to act if Menu module is installed later on.
Comment #7
moshe weitzman CreditAttribution: moshe weitzman commentedWill we get errors if menu module gets disabled and then re-enabled? If not, this looks good to go.
Comment #8
salvisWell, then I'd ask you to remove the dependency from devel_node_access, too, please.
Comment #9
moshe weitzman CreditAttribution: moshe weitzman commentedDecided to commit this after some light testing. Pls reopen if there are problems.