function pm_update_project

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

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

Parameters

$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/updatecode.pm.inc
Update packages according to an array of releases, following interactive confirmation from the user.
_pm_update_core in commands/pm/updatecode.pm.inc
Update drupal core, following interactive confirmation from the user.

File

commands/pm/updatecode.pm.inc, line 284

Code

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;
}