function _drush_pm_info_extension

8.0.x info.pm.inc _drush_pm_info_extension($info)
6.x info.pm.inc _drush_pm_info_extension($info)
7.x info.pm.inc _drush_pm_info_extension($info)
4.x pm.drush.inc _drush_pm_info_extension($info)
5.x info.pm.inc _drush_pm_info_extension($info)
master info.pm.inc _drush_pm_info_extension($info)

Return an array with general info of an extension.

2 calls to _drush_pm_info_extension()
_drush_pm_info_module in commands/pm/info.pm.inc
Return an array with info of a module.
_drush_pm_info_theme in commands/pm/info.pm.inc
Return an array with info of a theme.

File

commands/pm/info.pm.inc, line 70
pm-info command implementation.

Code

function _drush_pm_info_extension($info) {
  $data['extension'] = drush_extension_get_name($info);
  $data['project'] = isset($info->info['project']) ? $info->info['project'] : dt('Unknown');
  $data['type'] = drush_extension_get_type($info);
  $data['title'] = $info->info['name'];
  $data['config'] = isset($info->info['configure']) ? $info->info['configure'] : dt('None');
  $data['description'] = $info->info['description'];
  $data['version'] = $info->info['version'];
  $data['date'] = isset($info->info['datestamp']) ? format_date($info->info['datestamp'], 'custom', 'Y-m-d') : NULL;
  $data['package'] = $info->info['package'];
  $data['core'] = $info->info['core'];
  $data['php'] = $info->info['php'];
  $data['status'] = drush_get_extension_status($info);
  $data['path'] = drush_extension_get_path($info);

  return $data;
}