function hook_field_views_data

3.x views.api.php hook_field_views_data($field)

Override the default data for a Field API field.

Field module's implementation of hook_views_data() invokes this for each field in the module that defines the field type (as declared in the field array). It is not invoked in other modules.

If no hook implementation exists, hook_views_data() falls back to field_views_field_default_views_data().

Parameters

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

Return value

An array of views data, in the same format as the return value of hook_views_data().

See also

field_views_data()

hook_field_views_data_alter()

hook_field_views_data_views_data_alter()

Related topics

4 functions implement hook_field_views_data()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

file_field_views_data in modules/file.views.inc
Implements hook_field_views_data().
image_field_views_data in modules/image.views.inc
Implements hook_field_views_data().
list_field_views_data in modules/field.views.inc
Have a different filter handler for lists. This should allow to select values of the list.
taxonomy_field_views_data in modules/taxonomy.views.inc
Implements hook_field_views_data().
2 invocations of hook_field_views_data()
field_views_data in modules/field.views.inc
Implements hook_views_data().
_views_fetch_data_build in includes/cache.inc
Build and set the views data cache if empty.

File

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

Code

function hook_field_views_data($field) {

}