function redhen_fields_email_property_info_callback in RedHen CRM 7
Property callback for redhen_email field.
1 string reference to 'redhen_fields_email_property_info_callback'
- redhen_fields_field_info in modules/
redhen_fields/ redhen_fields.module - Implements hook_field_info().
File
- modules/
redhen_fields/ redhen_fields.module, line 32 - Defines email, phone and address field types for RedHen CRM.
Code
function redhen_fields_email_property_info_callback(&$info, $entity_type, $field, $instance, $field_type) {
$name = $field['field_name'];
$property =& $info[$entity_type]['bundles'][$instance['bundle']]['properties'][$name];
$property['type'] = $field['cardinality'] != 1 ? 'list<redhen_email>' : 'redhen_email';
$property['getter callback'] = 'entity_metadata_field_verbatim_get';
$property['setter callback'] = 'entity_metadata_field_verbatim_set';
$property['auto creation'] = 'redhen_fields_email_default_values';
$property['property info'] = redhen_fields_email_data_property_info();
unset($property['query callback']);
}