function pm_update_project

8.0.x pm_update_project($project, $version_control)
6.x pm_update_project($project, $version_control)
7.x pm_update_project($project, $version_control)
3.x pm_update_project($project, $version_control)
4.x pm_update_project($project, $version_control)
5.x pm_update_project($project, $version_control)
master pm_update_project($project, $version_control)

Update one project -- a module, theme or Drupal core


$project: The project to upgrade. $project['full_project_path'] must be set to the location where this project is stored.

2 calls to pm_update_project()
pm_update_packages in commands/pm/
Update packages according to an array of releases, following interactive confirmation from the user.
_pm_update_core in commands/pm/
Update drupal core, following interactive confirmation from the user.


commands/pm/, line 284


function pm_update_project($project, $version_control) {
  // Add the project to a context so we can roll back if needed.
  $updated = drush_get_context('DRUSH_PM_UPDATED');
  $updated[] = $project;
  drush_set_context('DRUSH_PM_UPDATED', $updated);

  if (!package_handler_update_project($project, $project['releases'][$project['candidate_version']])) {
    return drush_set_error('DRUSH_PM_UPDATING_FAILED', dt('Updating project !project failed. Attempting to roll back to previously installed version.', array('!project' => $project['name'])));

  return TRUE;