Agaric wants easy listing of a site's enabled Drupal modules including missing modules
Agaric wants our sites to generate a list of enabled modules.
Update: So we made an enabled modules module.
We want each enabled module to be listed even if the module code isn't there. This is convenient when moving messy sites.
Ideally the list of modules could communicate back to a central site and let you know what's up, but that functionality should actually live with update_status.
Two similar needs means we make a module!
From the initial project page:
The enabled_modules module provides two features that serve two purposes:
- List all enabled modules (whether the installed code base is present or not– enabled but absent modules are flagged missing).
- [Not yet implemented] Provide a block showing recently enabled modules (with links to the module's administration tasks) and provide a list of recently disabled modules.
The first functionality is useful for moving sites to a whole new code base and rebuilding fresh with only the modules actually in use.
The second functionality is very useful to administrators to provide administration links to the modules they just enabled.
The latter feature is not that easy to do, as there are no hooks that I can find that fire to announce the installing, enabling, disabling, and uninstalling of modules (except to call hooks in the affected module itself). The system table itself saves no timestamp data. I am interested in hearing from anyone working on revision functionality for Drupal administration, so we can share the approach and data. I think it will have to be a form_alter function that provides its own submit handler.
Permission to 'view enabled modules'
Notes on the making of
drupal using theme_table
How to use theme_table