function hook_textformatter_field_info_alter in Text list formatter 8.2
Same name and namespace in other branches
- 7 textformatter.api.php \hook_textformatter_field_info_alter()
hook_textformatter_field_list_info_alter().
Parameters
$info: An array of info as declared by hook_textformatter_field_list_info() to alter passed by reference.
1 invocation of hook_textformatter_field_info_alter()
- ListFormatter::fieldListInfo in lib/
Drupal/ textformatter/ Plugin/ field/ formatter/ ListFormatter.php - Returns an array of info data, invoking hook_textformatter_field_info().
File
- ./
textformatter.api.php, line 57 - Describes hooks provided by the textformatter module.
Code
function hook_textformatter_field_info_alter(&$info) {
// Change the callback used for fields from the text module.
$info['text']['callback'] = 'textformatter_example_text_callback';
}