function number_widget_info in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 5 number.module \number_widget_info()
- 6.3 modules/number/number.module \number_widget_info()
- 6 modules/number/number.module \number_widget_info()
Implementation of hook_widget_info().
Here we indicate that the content module will handle the default value and multiple values for these widgets.
Callbacks can be omitted if default handing is used. They're included here just so this module can be used as an example for custom modules that might do things differently.
File
- modules/
number/ number.module, line 358 - Defines numeric field types.
Code
function number_widget_info() {
return array(
'number' => array(
'label' => t('Text field'),
'field types' => array(
'number_integer',
'number_decimal',
'number_float',
),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
'default value' => CONTENT_CALLBACK_DEFAULT,
),
),
);
}