function drush_get_named_extensions_list

8.0.x environment_7.inc drush_get_named_extensions_list($extensions)
8.0.x environment_6.inc drush_get_named_extensions_list($extensions)
8.0.x environment.inc drush_get_named_extensions_list($extensions)
6.x environment_7.inc drush_get_named_extensions_list($extensions)
6.x environment_6.inc drush_get_named_extensions_list($extensions)
6.x environment.inc drush_get_named_extensions_list($extensions)
7.x environment_7.inc drush_get_named_extensions_list($extensions)
7.x environment_6.inc drush_get_named_extensions_list($extensions)
7.x environment.inc drush_get_named_extensions_list($extensions)
master environment_7.inc drush_get_named_extensions_list($extensions)
master environment.inc drush_get_named_extensions_list($extensions)

Return a list of extensions from a list of named extensions. Both enabled and disabled/uninstalled extensions are returned.

2 calls to drush_get_named_extensions_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.

File

commands/core/drupal/environment_7.inc, line 124
Specific functions for a drupal 7 environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal drush is called from.

Code

function drush_get_named_extensions_list($extensions) {
  $result = array();
  $rsc = drush_db_select('system', array('name', 'status'), 'name IN (:extensions)', array(':extensions' => $extensions));
  while ($row = drush_db_fetch_object($rsc)) {
    $result[$row->name] = $row;
  }
  return $result;
}