function deploy_get_remote_key in Deploy - Content Staging 6
17 calls to deploy_get_remote_key()
- book_node_deploy_check in modules/
book_deploy/ book_deploy.module - Implementation of hook_node_deploy_check().
- comment_deploy in modules/
comment_deploy/ comment_deploy.module - Implementation of hook_deploy(),
- comment_deploy_check in modules/
comment_deploy/ comment_deploy.module - Implementation of hook_deploy_check().
- filefield_deploy in modules/
filefield_deploy/ filefield_deploy.module - @file Deployment API which enables modules to deploy items between servers.
- filefield_deploy_node_deploy_check in modules/
filefield_deploy/ filefield_deploy.module - Implementation of hook_node_deploy_check().
File
- ./
deploy.module, line 836 - Deployment API which enables modules to deploy items between servers.
Code
function deploy_get_remote_key($uuid, $module) {
// 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];
}
// the remote data always comes back as array('uuid' => $uuid, '<key>' = $key)
$remote_data = deploy_send(array(
'deploy_uuid.get_key',
), array(
$uuid,
$module,
));
if ($remote_data) {
$key_cache[$uuid] = $remote_data;
}
return $remote_data;
}