You are here

function hook_field_views_data_alter in Views (for Drupal 7) 7.3

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

field_views_data()

hook_field_views_data()

hook_field_views_data_views_data_alter()

Related topics

File

./views.api.php, line 570
Describe hooks provided by the Views module.

Code

function hook_field_views_data_alter(&$result, $field, $module) {
}