function weight_field_info in Weight 7.3
Implements hook_field_info().
File
- ./
weight.module, line 11 - Provides a weight field that allows entities to be ordered.
Code
function weight_field_info() {
return array(
'weight' => array(
'label' => t('Weight'),
'description' => t('Weight Field'),
'instance_settings' => array(
'range' => 20,
),
'default_widget' => 'weight_selector',
'default_formatter' => 'number_integer',
'property_type' => 'integer',
),
);
}