You are here

function hook_shs__bundle_BUNDLENAME__term_data_response_alter in Simple hierarchical select 8

Same name and namespace in other branches
  1. 2.0.x shs.api.php \hook_shs__bundle_BUNDLENAME__term_data_response_alter()

Alter the response of SHS sent to the browser for a single bundle.

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 174
Hooks for the shs module.

Code

function hook_shs__bundle_BUNDLENAME__term_data_response_alter(&$content, array $context) {
}