function paragraphs_entity_metadata_property_callback in Paragraphs 7
Callback for generating entity metadata property info for a field instance.
See also
1 string reference to 'paragraphs_entity_metadata_property_callback'
- paragraphs_field_info in ./
paragraphs.module - Implements hook_field_info().
File
- ./
paragraphs.module, line 1063 - Paragraphs hooks and common functions.
Code
function paragraphs_entity_metadata_property_callback(&$info, $entity_type, $field, $instance, $field_type) {
$property =& $info[$entity_type]['bundles'][$instance['bundle']]['properties'][$field['field_name']];
$property['field_name'] = $field['field_name'];
$property['getter callback'] = 'paragraphs_field_property_get';
$property['setter callback'] = 'paragraphs_field_property_set';
}