You are here

function physical_weight_field_data_auto_creation in Physical Fields 7

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

1 string reference to 'physical_weight_field_data_auto_creation'
physical_weight_property_info_callback in ./physical.module
Callback to alter the property info of weight fields.

File

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

Code

function physical_weight_field_data_auto_creation() {
  return array(
    'weight' => 0,
    'unit' => 'lb',
  );
}