You are here

function field_nif_property_info_callback in Field NIF 7

Callback to alter the property info of nif fields.

See also

field_nif_field_info().

1 string reference to 'field_nif_property_info_callback'
field_nif_field_info in ./field_nif.module
Implements hook_field_info().

File

./field_nif.module, line 189

Code

function field_nif_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';
  $property['property info'] = field_nif_property_field_item_nif_info($field_type);
  unset($property['query callback']);
}