function pm_get_project_info

3.x drupal_6.inc pm_get_project_info($projects)
3.x drupal_7.inc pm_get_project_info($projects)
3.x drupal_5.inc pm_get_project_info($projects)
4.x drupal.inc pm_get_project_info($projects)
4.x drupal_6.inc pm_get_project_info($projects)
4.x drupal_5.inc pm_get_project_info($projects)

Get project information from drupal.org.

Parameters

$projects An array of project names Get project information from drupal.org.:

$projects An array of project names:

File

commands/pm/update_info/drupal_5.inc, line 87

Code

function pm_get_project_info($projects) {
  $info = array();
  $data = array();
  foreach ($projects as $project_name => $project) {
    $url = UPDATE_STATUS_DEFAULT_URL . "/$project_name/" . UPDATE_STATUS_CORE_VERSION;
    $xml = drupal_http_request($url);
    $data[] = $xml->data;
  }
  if ($data) {
    $parser = new update_status_xml_parser;
    $info = $parser->parse($data);
  }
  return $info;
}