function range_widget_info in Range 6
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
- ./
range.module, line 389 - Defines numeric fields within a range of possible values and displays them colored accordingly..
Code
function range_widget_info() {
return array(
'range' => array(
'label' => t('Text field'),
'field types' => array(
'range_integer',
'range_decimal',
'range_float',
),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
'default value' => CONTENT_CALLBACK_DEFAULT,
),
),
);
}