function hook_field_views_data_alter
Alter the views data for a single Field API field.
This is called even if there is no hook_field_views_data() implementation for the field, and therefore may be used to alter the default data that field_views_field_default_views_data() supplies for the field.
Parameters
array $result: An array of views table data provided for a single field. This has the same format as the return value of hook_views_data().
array $field: A field definition array, as returned by field_info_fields().
string $module: The module that defines the field type.
See also
hook_field_views_data_views_data_alter()
Related topics
2 functions implement hook_field_views_data_alter()
Note: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.
- TaxonomyViewsHooks::fieldViewsDataAlter in core/
modules/ taxonomy/ src/ Hook/ TaxonomyViewsHooks.php - Implements hook_field_views_data_alter().
- ViewsTestDataViewsExecutionHooks::fieldViewsDataAlter in core/
modules/ views/ tests/ modules/ views_test_data/ src/ Hook/ ViewsTestDataViewsExecutionHooks.php - Implements hook_field_views_data_alter().
File
-
./
views.api.php, line 570
Code
function hook_field_views_data_alter(&$result, $field, $module) {
}