Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
drush_pm_info()
contributions/drush/drush_pm/drush_pm.module, line 478
A drush command callback. Show release info for given project(s).
<?php
function drush_pm_info() {
$projects = func_get_args();
if (empty($projects)) {
drush_die(t("No project specified.\n\nRun drush help pm info for more information."));
}
// Get update status information.
$data = _drush_pm_get_update_info();
$rows[] = array(t('Release'), t('Date'), t('Rating'));
foreach ($projects as $project) {
foreach ($data[$project]['releases'] as $release) {
if ($release['version'] == $data[$project]['recommended']) {
$rating = t('Recommended');
}
else {
$rating = '';
}
$rows[] = array(
$release['version'],
format_date($release['date'], 'custom', 'Y-M-d'),
$rating,
);
}
}
return drush_print_table($rows, 0, 1);
}
?>