function hook_shs_js_info_alter in Simple hierarchical select 7
Alter information provided by shs_js() for the js module.
Parameters
array $settings: Settings for js module.
See also
hook_js()
1 invocation of hook_shs_js_info_alter()
- shs_js in ./
shs.module - Implements hook_js().
File
- ./
shs.api.php, line 20 - Hooks for the shs module.
Code
function hook_shs_js_info_alter(array &$settings) {
// Add pathauto as dependency for the default json callback.
$settings['json']['dependencies'][] = 'pathauto';
// Change the access callback.
$settings['json']['access callback'] = 'my_custom_access';
}