You are here

function tablefield_property_info_callback in TableField 7.3

Same name and namespace in other branches
  1. 7.2 tablefield.module \tablefield_property_info_callback()

Defines info for the properties of the tablefield field data structure.

1 string reference to 'tablefield_property_info_callback'
tablefield_field_info in ./tablefield.module
Implements hook_field_info().

File

./tablefield.module, line 213
Provides a set of fields that can be used to store tabular data with a node.

Code

function tablefield_property_info_callback(&$info, $entity_type, $field, $instance, $field_type) {
  $property =& $info[$entity_type]['bundles'][$instance['bundle']]['properties'][$field['field_name']];
  $property['getter callback'] = 'entity_metadata_field_verbatim_get';
  $property['setter callback'] = 'entity_metadata_field_verbatim_set';

  // Needed for Search API indexing.
  $property['property info'] = tablefield_item_property_info();
  unset($property['query callback']);
}