function js_test_response in JS Callback Handler 7
Same name and namespace in other branches
- 6 tests/js_test.module \js_test_response()
Create a generic response with various data.
Parameters
mixed $response:
Return value
array
4 calls to js_test_response()
- js_test_arguments in tests/
js_test.module - Test callback for the js module.
- js_test_basic in tests/
js_test.module - Test callback for the js module.
- js_test_file in tests/
js_test.callbacks.inc - Test callback for the js module.
- js_test_variable in tests/
js_test.module - Test callback for the js module.
File
- tests/
js_test.module, line 96 - JavaScript callback handler tests.
Code
function js_test_response($response) {
global $language, $js_test_init;
return array(
'filename' => pathinfo($_SERVER['SCRIPT_FILENAME'], PATHINFO_BASENAME),
'response' => $response,
'language' => $language,
'hook_init' => $js_test_init,
);
}