You are here

function dimension_field_info in Dimension 7

Implements hook_field_info();

File

./dimension.module, line 17

Code

function dimension_field_info() {
  return array(
    'dimension' => array(
      'label' => t('Dimensions'),
      'description' => t('This field stores length or area (width/height) or volume (width/height/depth).'),
      'settings' => _dimension_default_field_instance_settings(),
      'default_widget' => 'dimension_widget',
      'default_formatter' => 'dimension_formatter',
      'property_type' => 'dimension',
      'property_callbacks' => array(
        'dimension_field_dimension_property_callback',
      ),
    ),
  );
}