function physical_volume_field_data_auto_creation in Physical Fields 7
Returns the default array structure for a volume field.
For use when creating new data arrays through an entity metadata wrapper.
Return value
array Value array.
1 string reference to 'physical_volume_field_data_auto_creation'
- physical_volume_property_info_callback in ./
physical.module - Callback to alter the property info of volume fields.
File
- ./
physical.module, line 1022 - Defines fields (e.g. weight and dimensions) to support describing the physical attributes of entities.
Code
function physical_volume_field_data_auto_creation() {
return array(
'volume' => 0,
'unit' => 'l',
);
}