Agaric wants easy listing of a site's enabled Drupal modules including missing modules

Key words and phrases: 
drupal list enabled modules drupal module generate list enabled modules drupal devel show enabled modules drupal site recipe modules drupal list modules used module listing enabled_modules module_list list_modules Modules used on this site Here is the current list of major modules in use on this site complete site recipe
Description & Info: 

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:

  1. List all enabled modules (whether the installed code base is present or not– enabled but absent modules are flagged missing).
  2. [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

http://api.drupal.org/api/function/drupal_system_listing/5

http://api.drupal.org/api/function/system_get_files_database/5

drupal using theme_table

How to use theme_table
http://drupal.org/node/53065

AttachmentSize
enabled-modules.png49.47 KB
by Benjamin Melançon
Posted on Wed, 2008-04-09 11:45
in
Post new comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
     _      _   _   _   _   ____    ____  
/ \ | | | | | | | | | ___| | _ \
/ _ \ | |_| | | |_| | |___ \ | |_) |
/ ___ \ | _ | | _ | ___) | | _ <
/_/ \_\ |_| |_| |_| |_| |____/ |_| \_\
Enter the code depicted in ASCII art style.