function hook_shs__field_IDENTIFIER__term_data_response_alter in Simple hierarchical select 8
Same name and namespace in other branches
- 2.0.x shs.api.php \hook_shs__field_IDENTIFIER__term_data_response_alter()
Alter the response of SHS sent to the browser for a single field.
Parameters
string $content: Json encoded string with data from ShsController::getTermData().
array $context: Associativ array containing information about the current context:
- bundle: Name of vocabulary the data is fetched from
- identifier: Identifier of field to fetch the data for
- parent: Term Id of parent term (0 for first level)
- encodingOptions: encoding options used by json_encode(). Do not change.
See also
hook_shs_term_data_response_alter()
File
- ./
shs.api.php, line 192 - Hooks for the shs module.
Code
function hook_shs__field_IDENTIFIER__term_data_response_alter(&$content, array $context) {
}