function drush_pm_get_projects

3.x pm.drush.inc drush_pm_get_projects()

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

Return value

An array containing info for all available modules and themes w/additional info.

2 calls to drush_pm_get_projects()
drush_pm_info in commands/pm/pm.drush.inc
Command callback. Show detailed info for one or more projects.
drush_pm_list in commands/pm/pm.drush.inc
Command callback. Show a list of modules and status.

File

commands/pm/pm.drush.inc, line 520
The drush Package Manager

Code

function drush_pm_get_projects() {
  $projects = drush_get_projects();
  foreach ($projects as $key => $project) {
    if (empty($project->info['package'])) {
      $projects[$key]->info['package'] = dt('Other');
    }
  }
  return $projects;
}