You are here

function optionwidgets_widget_info in Content Construction Kit (CCK) 5

Same name and namespace in other branches
  1. 6.3 modules/optionwidgets/optionwidgets.module \optionwidgets_widget_info()
  2. 6 modules/optionwidgets/optionwidgets.module \optionwidgets_widget_info()
  3. 6.2 modules/optionwidgets/optionwidgets.module \optionwidgets_widget_info()

Implementation of hook_widget_info().

1 call to optionwidgets_widget_info()
optionwidgets_help in ./optionwidgets.module
Implementation of hook_help().

File

./optionwidgets.module, line 29
Defines selection, check box and radio button widgets for text and numeric fields.

Code

function optionwidgets_widget_info() {
  $option_types = array(
    'text',
    'number_integer',
    'number_decimal',
  );
  return array(
    'options_select' => array(
      'label' => t('Select list'),
      'field types' => $option_types,
    ),
    'options_buttons' => array(
      'label' => t('Check boxes/radio buttons'),
      'field types' => $option_types,
    ),
    'options_onoff' => array(
      'label' => t('Single on/off checkbox'),
      'field types' => $option_types,
    ),
  );
}