function drd_agent_deliver in DRD Agent 6.3
Same name and namespace in other branches
- 7.3 drd_agent.module \drd_agent_deliver()
Callback to deliver the result of the action in json format.
Parameters
$page_callback_result:
3 calls to drd_agent_deliver()
- drd_agent in ./
drd_agent.module - Menu callback to execute the remote request for an action.
- drd_agent_authorize_secret in ./
drd_agent.module - Menu callback to authorize a DRD instance by a secret.
- drd_agent_crypt in ./
drd_agent.module - Menu callback to return an array containing supported crypt methods.
File
- ./
drd_agent.module, line 117
Code
function drd_agent_deliver($page_callback_result) {
drupal_set_header('Content-Type: text/plain; charset=utf-8');
drupal_set_header('X-DRD-Agent: ' . $_SERVER['HTTP_X_DRD_VERSION']);
print $page_callback_result;
drupal_page_footer();
exit;
}