function pm_module_list
| 5.x pm.drush.inc | pm_module_list() |
| 4.x pm.drush.inc | 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/ pm.drush.inc - Command callback. Disable one or more extensions.
- 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 595 - 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;
}