$project) { $url = UPDATE_DEFAULT_URL. "/$project_name/". drush_drupal_major_version() . '.x'; $xml = drupal_http_request($url); if (isset($xml->error)) { drush_set_error(dt( 'HTTP Request to @request has failed. @error', array('@request' => $xml->request, '@error' => $xml->error) )); } elseif (!$info = update_parse_xml($xml->data)) { drush_set_error(dt( 'No release history found for @project_name', array('@project_name' => $project_name) )); } else { $data[$project_name] = $info; } } return $data; }