function _drush_pm_info_project

3.x pm.drush.inc _drush_pm_info_project($info)

Return a string with general info of a project (module or theme).

2 calls to _drush_pm_info_project()
_drush_pm_info_module in commands/pm/pm.drush.inc
Return a string with info of a module.
_drush_pm_info_theme in commands/pm/pm.drush.inc
Return a string with info of a theme.

File

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

Code

function _drush_pm_info_project($info) {
  $major_version = drush_drupal_major_version();

  $data['Project'] = $info->name;
  $data['Type'] = $info->type;
  if (($info->type == 'module') || ($major_version >= 6)) {
    $data['Title'] = $info->info['name'];
    $data['Description'] = $info->info['description'];
    $data['Version'] = $info->info['version'];
  }
  $data['Package'] = $info->info['package'];
  if ($major_version >= 6) {
    $data['Core'] = $info->info['core'];
  }
  if ($major_version == 6) {
    $data['PHP'] = $info->info['php'];
  }
  $data['Status'] = drush_get_project_status($info);
  $path = (($info->type == 'module') && ($major_version == 7)) ? $info->uri : $info->filename;
  $path = substr($path, 0, strrpos($path, '/'));
  $data['Path'] = $path;

  return $data;
}