function drush_pm_get_extensions

4.x pm.drush.inc 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/pm.drush.inc
Command callback. Show detailed info for one or more extension.
drush_pm_list in commands/pm/pm.drush.inc
Command callback. Show a list of extensions with type and status.
drush_upgrade_site_upgrade in commands/core/upgrade.drush.inc
Main command hook for site-upgrade.

File

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

Code

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