function _drush_pm_get_releases

4.x _drush_pm_get_releases($requests)

Obtain releases info for given projects and fill in status information.

It does connect directly to the update service and does not depend on a bootstraped site.


$requests: An array of project names optionally with a version.

See also



4 calls to _drush_pm_get_releases()
drush_check_self_update in includes/
Check to see if a newer version of drush is available
drush_pm_find_project_from_extension in commands/pm/
drush_pm_releases in commands/pm/
Command callback. Show available releases for given project(s).
_drush_pm_releasenotes in commands/pm/
Internal function: prints release notes for given drupal projects.


commands/pm/, line 1401
The drush Project Manager


function _drush_pm_get_releases($requests) {
  $info = array();

  // Parse out project name and version.
  $requests = pm_parse_project_version($requests);

  // Get release history for each request.
  foreach ($requests as $name => $request) {
    $xml = _drush_pm_get_release_history_xml($request);
    if (!$xml) {

    $project_info = _drush_pm_get_releases_from_xml($xml, $name);
    $info[$name] = $project_info;
  return $info;