function release_info_check_project

6.x updatexml.inc release_info_check_project($request, $type = NULL)
5.x updatexml.inc release_info_check_project($request, $type = NULL)

Check if a project is available in a update service.

Optionally check for consistency by comparing given project type and the type obtained from the update service.

3 calls to release_info_check_project()
drush_pm_find_project_from_extension in commands/pm/pm.drush.inc
Helper function for pm-enable.
make_projects in commands/make/make.drush.inc
Process all projects specified in the make file.
_drush_make_generate_projects in commands/make/generate.make.inc
Generate the $projects makefile array for the current site.

File

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

Code

function release_info_check_project($request, $type = NULL) {
  $xml = updatexml_get_release_history_xml($request);
  if (!$xml) {
    return FALSE;
  }

  if ($type) {
    $project_type = updatexml_determine_project_type($xml);
    if ($project_type != $type) {
      return FALSE;
    }
  }

  return TRUE;
}