function hook_shs_js_settings_alter in Simple hierarchical select 8
Same name and namespace in other branches
- 7 shs.api.php \hook_shs_js_settings_alter()
- 2.0.x shs.api.php \hook_shs_js_settings_alter()
Alter Javascript settings of shs widgets in entity forms and views.
Parameters
array $settings_shs: Javascript settings for shs widgets.
string $bundle: Bundle name of vocabulary the settings are used for.
string $field_name: Name of field the provided settings are used for.
1 function implements hook_shs_js_settings_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- shs_chosen_shs_js_settings_alter in modules/
shs_chosen/ shs_chosen.module - Alter Javascript settings of shs widgets in entity forms and views.
File
- ./
shs.api.php, line 52 - Hooks for the shs module.
Code
function hook_shs_js_settings_alter(array &$settings_shs, $bundle, $field_name) {
if ($field_name == 'field_article_terms') {
$settings_shs['settings']['anyLabel'] = t('- Select an item -');
}
}