function physical_field_widget_info in Physical Fields 7
Implements hook_field_widget_info().
File
- ./
physical.module, line 152 - Defines fields (e.g. weight and dimensions) to support describing the physical attributes of entities.
Code
function physical_field_widget_info() {
return array(
'physical_volume_input' => array(
'label' => t('Volume input'),
'field types' => array(
'physical_volume',
),
'settings' => array(
'default_unit' => 'l',
'unit_select_list' => TRUE,
),
),
'physical_weight_textfield' => array(
'label' => t('Weight textfield'),
'field types' => array(
'physical_weight',
),
'settings' => array(
'default_unit' => 'lb',
'unit_select_list' => TRUE,
),
),
'physical_dimensions_textfields' => array(
'label' => t('Dimensions textfields'),
'field types' => array(
'physical_dimensions',
),
'settings' => array(
'default_unit' => 'in',
'unit_select_list' => TRUE,
),
),
);
}