function entity_views_get_field_handlers in Entity API 7
Return value
array The handlers to use for the data selection based Views tables.
See also
hook_entity_views_field_handlers_alter()
1 call to entity_views_get_field_handlers()
- entity_views_field_definition in views/
entity.views.inc - Helper function for adding a Views field definition to data selection based Views tables.
File
- views/
entity.views.inc, line 258 - Provide views data for modules making use of the entity CRUD API.
Code
function entity_views_get_field_handlers() {
$field_handlers = drupal_static(__FUNCTION__);
if (!isset($field_handlers)) {
// Field handlers for the entity tables, by type.
$field_handlers = array(
'text' => 'entity_views_handler_field_text',
'token' => 'entity_views_handler_field_text',
'integer' => 'entity_views_handler_field_numeric',
'decimal' => 'entity_views_handler_field_numeric',
'date' => 'entity_views_handler_field_date',
'duration' => 'entity_views_handler_field_duration',
'boolean' => 'entity_views_handler_field_boolean',
'uri' => 'entity_views_handler_field_uri',
'options' => 'entity_views_handler_field_options',
'field' => 'entity_views_handler_field_field',
'entity' => 'entity_views_handler_field_entity',
'relationship' => 'entity_views_handler_relationship',
);
drupal_alter('entity_views_field_handlers', $field_handlers);
}
return $field_handlers;
}