You are here

function _dimension_default_field_instance_settings in Dimension 7

Callback to provide the default settings of a dimension field.

Return value

array

3 calls to _dimension_default_field_instance_settings()
dimension_field_info in ./dimension.module
Implements hook_field_info();
dimension_field_instance_settings_form in ./dimension.module
Implements hook_field_instance_settings_form().
_dimension_field_widget_form_field in ./dimension.module
Callback called by dimension_field_widget_form() to define the field settings for one of the dimension components.

File

./dimension.module, line 454

Code

function _dimension_default_field_instance_settings() {
  return array(
    'mode' => DIMENSION_MODE_LENGTH,
    'fields' => array(
      'length' => array(
        'label' => t('Length'),
        'prefix' => '',
        'suffix' => 'mm',
        'descr' => '',
        'datatype' => DIMENSION_DATATYPE_INTEGER,
        'decimals' => 0,
        'factor' => 1,
      ),
      'height' => array(
        'label' => t('Height'),
        'prefix' => '',
        'suffix' => 'mm',
        'descr' => '',
        'datatype' => DIMENSION_DATATYPE_INTEGER,
        'decimals' => 0,
        'factor' => 1,
      ),
      'width' => array(
        'label' => t('Width'),
        'prefix' => '',
        'suffix' => 'mm',
        'descr' => '',
        'datatype' => DIMENSION_DATATYPE_INTEGER,
        'decimals' => 0,
        'factor' => 1,
      ),
    ),
  );
}