You are here

function entity_property_info_defaults in Entity API 7

Returns the default information for an entity property.

Return value

array An array of optional property information keys mapped to their defaults.

See also

hook_entity_property_info()

1 call to entity_property_info_defaults()
entity_views_field_definition in views/entity.views.inc
Helper function for adding a Views field definition to data selection based Views tables.

File

includes/entity.property.inc, line 54
Provides API functions around hook_entity_property_info(). Also see entity.info.inc, which cares for providing entity property info for all core entity types.

Code

function entity_property_info_defaults() {
  return array(
    'type' => 'text',
    'getter callback' => 'entity_property_verbatim_get',
  );
}