You are here

function deploy_get_remote_book in Deploy - Content Staging 6

1 call to deploy_get_remote_book()
book_node_deploy in modules/book_deploy/book_deploy.module
Implementation of hook_node_deploy(),

File

./deploy.module, line 857
Deployment API which enables modules to deploy items between servers.

Code

function deploy_get_remote_book($uuid) {

  // As remote keys are retrieved, they are cached in this static var. On
  // the next request, if that key exists, just return it rather than going
  // for another round trip. The format is
  //
  // $key_cache[$uuid] = $remote_key
  static $key_cache = array();
  if (isset($key_cache[$uuid])) {
    return $key_cache[$uuid];
  }
  $remote_data = deploy_send(array(
    'deploy_uuid.get_book',
  ), array(
    $uuid,
  ));
  if ($remote_data) {
    $key_cache[$uuid] = $remote_data;
  }
  return $remote_data;
}