function hook_field_views_data_alter

3.x views.api.php hook_field_views_data_alter(&$result, $field, $module)

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

$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().

$field: A field definition array, as returned by field_info_fields().

$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

1 invocation of hook_field_views_data_alter()
_views_fetch_data_build in includes/cache.inc
Build and set the views data cache if empty.

File

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

Code

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

}