You are here

function multiselect_widget_info in Multiselect 6

Same name and namespace in other branches
  1. 5.2 multiselect.module \multiselect_widget_info()
  2. 5 multiselect.module \multiselect_widget_info()

Implementation of hook_widget_info(). This specifies the label and that it is a widget for the different field types.

File

./multiselect.module, line 78
Allows users to select multiple items in an easier way than the normal node-reference widget.

Code

function multiselect_widget_info() {
  return array(
    'multiselect_select' => array(
      'label' => t('Multiselect'),
      'field types' => array(
        'nodereference',
        'text',
        'number_integer',
        'number_decimal',
        'number_float',
        'userreference',
        'content_taxonomy',
      ),
      'multiple values' => CONTENT_HANDLE_MODULE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
  );
}