function interval_field_entity_property_info_alter in Interval Field 7
Callback to alter the property info of interval fields.
See also
1 string reference to 'interval_field_entity_property_info_alter'
- interval_field_info in ./
interval.module - Implements hook_field_info().
File
- ./
interval.module, line 59 - Defines an interval field @copyright Copyright(c) 2011 Rowlands Group @license GPL v2+ http://www.fsf.org/licensing/licenses/gpl.html @author Lee Rowlands leerowlands at rowlandsgroup dot com
Code
function interval_field_entity_property_info_alter(&$info, $entity_type, $field, $instance, $field_type) {
$name = $field['field_name'];
$property =& $info[$entity_type]['bundles'][$instance['bundle']]['properties'][$name];
$property['getter callback'] = 'entity_metadata_field_verbatim_get';
$property['setter callback'] = 'entity_metadata_field_verbatim_set';
$property['property info'] = interval_entity_property_field_item_interval_info();
unset($property['query callback']);
}