Similar to http://drupal.org/node/93212. Submitting a separate issue as per chx's request.
When disabling multiple modules, mymodule1 and mymodule2, you can access mymodule1 hooks from mymodule2_disable(). This patch uses the same method as the above issue. I tested the behavior with two sample modules and this patch successfully refreshes the module list cache after each disable.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | module_disable_0.patch | 4.15 KB | Jaza |
| module.disable.patch | 1.64 KB | RobRoy |
Comments
Comment #1
Jaza commentedNew patch that uses the same approach as the committed patch at http://drupal.org/node/93212 for improved efficiency. Tested for disabling modules, and it works the same as the original patch.
Note: this patch includes adding a
$refreshparameter to themodule_implements()function, which is also needed (not critically, it seems - since things work right now without errors) by the code that was committed in http://drupal.org/node/93212Comment #2
drummCommitted to HEAD.
Comment #3
(not verified) commented