function js_delivery_callback in JS Callback Handler 7.2
Determines the delivery callback to use for final output.
Parameters
string $function: (Optional) The function name to set for of the callback.
Return value
string The function name of the callback to invoke.
3 calls to js_delivery_callback()
- hook_js_captured_content_alter in ./
js.api.php - Allows modules to alter delivery content with captured (printed) output.
- js_deliver in ./
js.module - Sends content to the browser via the delivery callback.
- js_execute_request in ./
js.module - Loads the requested module and executes the requested callback.
File
- includes/
common.inc, line 17 - Common functions used in any JS request.
Code
function js_delivery_callback($function = NULL) {
$callback =& drupal_static(__FUNCTION__);
if (!isset($callback)) {
$callback = 'js_deliver_json';
}
if (isset($function)) {
$callback = $function;
}
return $callback;
}