You are here

function physical_dimensions_field_data_auto_creation in Physical Fields 7

Returns the default array structure for a Dimensions field for use when creating new data arrays through an entity metadata wrapper.

1 string reference to 'physical_dimensions_field_data_auto_creation'
physical_dimensions_property_info_callback in ./physical.module
Callback to alter the property info of Dimensions fields.

File

./physical.module, line 1338
Defines fields (e.g. weight and dimensions) to support describing the physical attributes of entities.

Code

function physical_dimensions_field_data_auto_creation() {
  return array(
    'length' => 0,
    'width' => 0,
    'height' => 0,
    'unit' => 'in',
  );
}