You are here

function deploy_send in Deploy - Content Staging 6

Push an item from a deployment plan to the remote server.

Parameters

protocol_args: An array of arguments related to the protocol you're using. For the moment this is just the name of the function being called, but in the future it could include more or vary depending on the transport mechanism.

function_args: An array of the necessary arguments for the function.

Return value

Results of the remote call.

13 calls to deploy_send()
comment_deploy in modules/comment_deploy/comment_deploy.module
Implementation of hook_deploy(),
content_copy_deploy in modules/content_copy_deploy/content_copy_deploy.module
Deploy content deployment 'hook'.
deploy_auth_sessid_init in ./deploy.module
Implementation of the init callback.
deploy_get_remote_book in ./deploy.module
deploy_get_remote_key in ./deploy.module

... See full list

File

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

Code

function deploy_send($protocol_args, $function_args) {

  // Get the active server.
  $server = variable_get('deploy_server', array());
  array_unshift($protocol_args, $server['url']);
  deploy_auth_invoke($server['auth_type'], 'arguments callback', $protocol_args, $function_args);
  return call_user_func_array('xmlrpc', array_merge($protocol_args, $function_args));
}