function pm_module_list

4.x pm.drush.inc pm_module_list()
5.x pm.drush.inc pm_module_list()

Returns a list of enabled modules.

This is a simplified version of module_list().

Related topics

4 calls to pm_module_list()
drush_pm_disable in commands/pm/pm.drush.inc
Command callback. Disable one or more extensions.
drush_pm_enable in commands/pm/pm.drush.inc
Command callback. Enable one or more extensions from downloaded projects. Note that the modules and themes to be enabled were evaluated during the pm-enable validate hook, above.
drush_pm_enable_validate in commands/pm/pm.drush.inc
Validate callback. Determine the modules and themes that the user would like enabled.
drush_pm_updatecode_postupdate in commands/pm/pm.drush.inc
Command callback. Execute updatecode-postupdate.

File

commands/pm/pm.drush.inc, line 415
The drush Project Manager

Code

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;
}