function double_field_field_info in Double Field 7
Same name and namespace in other branches
- 7.2 double_field.module \double_field_field_info()
Implements hook_field_info().
File
- ./
double_field.module, line 11 - Defines double text field type.
Code
function double_field_field_info() {
return array(
'double_field' => array(
'label' => t('Double field'),
'description' => t('Double text field'),
'default_widget' => 'double_field',
'default_formatter' => 'double_field_inline',
'settings' => array(
'first_maxlength' => 255,
'second_maxlength' => 255,
),
// Integrate with the Entity Metadata module.
'property_type' => 'double_field',
'property_callbacks' => array(
'double_field_property_callback',
),
),
);
}