function hook_field_token_value_wrapper_info_alter in Field Token Value 2.x
Same name and namespace in other branches
- 8 field_token_value.api.php \hook_field_token_value_wrapper_info_alter()
- 7 field_token_value.api.php \hook_field_token_value_wrapper_info_alter()
Alters the array of wrappers available.
Parameters
array $wrappers: An array containing all available wrappers.
File
- ./
field_token_value.api.php, line 34 - Describes API functions for field_token_value module.
Code
function hook_field_token_value_wrapper_info_alter(&$wrappers) {
if (isset($wrappers['p'])) {
// Add an ID attribute and update the summary.
$wrappers['p']['attributes']['id'] = 'my-paragraph-id';
$wrappers['p']['summary'] = t('Wrap the value in a paragraph with a custom ID attribute.');
}
}