function hook_extra_field_display_info_alter in Extra Field 8.2
Same name and namespace in other branches
- 8 extra_field.api.php \hook_extra_field_display_info_alter()
Performs alteration on Extra Field Display plugins.
Parameters
array $info: An array of information of existing Extra Field Displays, as collected by the annotation discovery mechanism.
File
- ./
extra_field.api.php, line 48 - Extra Field API documentation.
Code
function hook_extra_field_display_info_alter(array &$info) {
// Let the all_nodes plugin also be used on all taxonomy terms.
if (isset($info['all_nodes'])) {
$info['all_nodes']['bundles'][] = 'taxonomy_term.*';
}
}