function pm_module_list

4.x pm_module_list()
5.x pm_module_list()

Returns a list of enabled modules.

This is a simplified version of module_list().

Related topics

3 calls to pm_module_list()
drush_pm_disable in commands/pm/
Command callback. Disable one or more extensions.
drush_pm_enable_validate in commands/pm/
Validate callback. Determine the modules and themes that the user would like enabled.
drush_pm_updatecode_postupdate in commands/pm/
Command callback. Execute updatecode-postupdate.


commands/pm/, line 602
The drush Project Manager


function pm_module_list() {
  $enabled = array();
  $rsc = drush_db_select('system', 'name', 'type=:type AND status=:status', array(':type' => 'module', ':status' => 1));
  while ($row = drush_db_result($rsc)) {
    $enabled[$row] = $row;

  return $enabled;