You are here

function hook_js_info_alter in JS Callback Handler 7.2

Alters registered JS callbacks.

Parameters

array $callbacks: An associative array, passed by reference, where the keys are modules that implement callbacks and the value is an associative array where they keys are callback machine names and the value is the callback info array.

See also

hook_js_info()

1 invocation of hook_js_info_alter()
js_get_callback in ./js.module
Provides callback information provided by modules.

File

./js.api.php, line 170
This file contains no working PHP code; it exists to provide documentation for this module's API.

Code

function hook_js_info_alter(array &$callbacks) {
  $callbacks['some_module']['callback_name']['access callback'] = 'my_module_js_callback_access';
}