You are here

function entity_property_field_item_textsummary_info in Entity API 7

Defines info for the properties of the field_item_textsummary data structure.

1 call to entity_property_field_item_textsummary_info()
entity_metadata_field_text_property_callback in modules/field.info.inc
Additional callback to adapt the property info for text fields. If a text field is processed we make use of a separate data structure so that format filters are available too. For the text value that is sanitized, this processed value is returned by…

File

includes/entity.property.inc, line 532
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_field_item_textsummary_info() {
  return array(
    'value' => array(
      'type' => 'text',
      'label' => t('Text'),
      'setter callback' => 'entity_property_verbatim_set',
    ),
    'summary' => array(
      'type' => 'text',
      'label' => t('Summary'),
      'setter callback' => 'entity_property_verbatim_set',
    ),
  );
}