You are here

function hook_shs__bundle_BUNDLENAME__term_data_alter in Simple hierarchical select 2.0.x

Same name and namespace in other branches
  1. 8 shs.api.php \hook_shs__bundle_BUNDLENAME__term_data_alter()

Alter the <strong>uncached</strong> term data for a specific bundle.

Parameters

array $data: Array with term data used for a single SHS widget.

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)

See also

ShsController::getTermData()

hook_shs_term_data_alter()

File

./shs.api.php, line 113
Hooks for the shs module.

Code

function hook_shs__bundle_BUNDLENAME__term_data_alter(array &$data, array $context) {
}