You are here

function js_test_response in JS Callback Handler 6

Same name and namespace in other branches
  1. 7 tests/js_test.module \js_test_response()

Create a generic response with various data.

Parameters

mixed $response:

Return value

array

3 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.

File

tests/js_test.module, line 61
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,
  );
}