You are here

function git_deploy_mydropwizard_projects_alter in Git Deploy 6.2

Same name and namespace in other branches
  1. 6 git_deploy.module \git_deploy_mydropwizard_projects_alter()

Implements hook_mydropwizard_projects_alter().

File

./git_deploy.module, line 303
Adds project, version and date information to projects checked out with Git.

Code

function git_deploy_mydropwizard_projects_alter(&$projects) {

  // Get projects whose datestamps need to be synced with upstream releases.
  $update = _git_deploy_static('update', array());

  // Free up memory.
  _git_deploy_static_reset();
  if (!empty($update)) {

    // Fetch updated release data.
    $available = _git_deploy_update_refresh($projects);
    foreach ($update as $project_name) {
      $project =& $projects[$project_name];
      $version = $project['info']['version'];
      if (isset($available[$project_name]['releases'][$version])) {
        _git_deploy_datestamp_sync($project, $available[$project_name]['releases'][$version]);
      }
    }
  }
}