function release_info_get_releases

6.x updatexml.inc release_info_get_releases($requests)
5.x updatexml.inc release_info_get_releases($requests)

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

Parameters

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

2 calls to release_info_get_releases()
drush_pm_releases in commands/pm/pm.drush.inc
Command callback. Show available releases for given project(s).
release_info_print_releasenotes in commands/pm/release_info/updatexml.inc
Prints release notes for given projects.

File

commands/pm/release_info/updatexml.inc, line 105
Drush release info engine for update.drupal.org and compatible services.

Code

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

  foreach ($requests as $name => $request) {
    $xml = updatexml_get_release_history_xml($request);
    if (!$xml) {
      continue;
    }

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

  return $info;
}