function hook_shs_json_callbacks_alter in Simple hierarchical select 7
Alter the list of JSON callbacks supported by shs.
JSON callback definitions are used to validate incoming data and function requests (i.e. adding a new term).
Parameters
array $callbacks: List of callback definitions.
1 invocation of hook_shs_json_callbacks_alter()
- shs_json_callbacks in ./
shs.module - Get a list of supported JSON callbacks.
File
- ./
shs.api.php, line 60 - Hooks for the shs module.
Code
function hook_shs_json_callbacks_alter(array &$callbacks) {
// Use custom callback for adding new terms.
$callbacks['shs_json_term_add']['callback'] = 'my_custom_shs_json_term_add';
}