function double_field_property_callback in Double Field 7
Same name and namespace in other branches
- 7.2 double_field.module \double_field_property_callback()
Alter the property info of date fields.
1 string reference to 'double_field_property_callback'
- double_field_field_info in ./
double_field.module - Implements hook_field_info().
File
- ./
double_field.module, line 365 - Defines double text field type.
Code
function double_field_property_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']['first'] = array(
'type' => 'text',
'label' => t('First subfield'),
'setter callback' => 'entity_property_verbatim_set',
);
$property['property info']['second'] = array(
'type' => 'text',
'label' => t('Second subfield'),
'setter callback' => 'entity_property_verbatim_set',
);
unset($property['query callback']);
}