function drush_pm_get_projects

3.x 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/
Command callback. Show detailed info for one or more projects.
drush_pm_list in commands/pm/
Command callback. Show a list of modules and status.


commands/pm/, line 520
The drush Package Manager


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;