function hook_shs_FIELDNAME_class_definitions_alter in Simple hierarchical select 8
Same name and namespace in other branches
- 2.0.x shs.api.php \hook_shs_FIELDNAME_class_definitions_alter()
Alter the list of used javascript classes for an individual field.
Parameters
array $definitions: List of class names keyed by type and class key.
array $context: Additional information about the current context (i.e. additional field settings).
File
- ./
shs.api.php, line 37 - Hooks for the shs module.
Code
function hook_shs_FIELDNAME_class_definitions_alter(array &$definitions, array $context) {
// Use custom class for option elements.
$definitions['views']['widgetItem'] = 'Drupal.customShs.MyWidgetItemView';
}