Closed (fixed)
Project:
Enabled Modules
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2010 at 12:54 UTC
Updated:
22 Apr 2010 at 22:40 UTC
The page at admin/reports/enabled_modules/disabled claims to only show modules if they have previously been enabled but now disabled.
In fact, it shows all modules that are not enabled, whether or not they have ever been so.
This is because the status field alone cannot determine if module has previously been enabled. For this, the schema field has to be checked as well. Modules that have NEVER been enabled have a schema version of '-1'.
This is how core does it:
$disabled_modules = db_query("SELECT name, filename, info FROM {system} WHERE type = 'module' AND status = 0 AND schema_version > %d ORDER BY name", SCHEMA_UNINSTALLED);
Patch to follow.
Comments
Comment #1
mlncn commentedCool! I take it that a fully uninstalled module will look identical to a never-installed modules, not sure that needs to be clarified.
Comment #2
juliangb commentedExactly.
Comment #3
juliangb commentedRather than messing with the SQL as simple as that may be, I'll do this as part of #764350: Existing pages to be rewritten using views.
Comment #4
juliangb commentedNow fixed as part of #764350: Existing pages to be rewritten using views.