function _drush_pm_get_releases

4.x pm.drush.inc _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.

Parameters

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

See also

drush_pm_releases()

_drush_pm_releasenotes()

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

File

commands/pm/pm.drush.inc, line 1401
The drush Project Manager

Code

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) {
      continue;
    }

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