function drush_pm_get_extensions

4.x drush_pm_get_extensions()

Wrapper of drupal_get_extensions() with additional information used by pm- commands.

Return value

An array containing info for all available extensions w/additional info.

Related topics

3 calls to drush_pm_get_extensions()
drush_pm_info in commands/pm/
Command callback. Show detailed info for one or more extension.
drush_pm_list in commands/pm/
Command callback. Show a list of extensions with type and status.
drush_upgrade_site_upgrade in commands/core/
Main command hook for site-upgrade.


commands/pm/, line 308
The drush Project Manager


function drush_pm_get_extensions() {
  $extensions = drush_get_extensions();
  foreach ($extensions as $key => $extension) {
    if (empty($extension->info['package'])) {
      $extensions[$key]->info['package'] = dt('Other');
  return $extensions;