You are here

function content_taxonomy_options_widget_info in Content Taxonomy 6

Same name and namespace in other branches
  1. 5 content_taxonomy_options.module \content_taxonomy_options_widget_info()
  2. 6.2 content_taxonomy_options.module \content_taxonomy_options_widget_info()

Implementation of hook_widget_info().

File

./content_taxonomy_options.module, line 23
Defines a widget type for content_taxonomy for options

Code

function content_taxonomy_options_widget_info() {
  return array(
    'content_taxonomy_options' => array(
      'label' => t('Checkboxes/Radios'),
      'field types' => array(
        'content_taxonomy',
      ),
      'multiple values' => CONTENT_HANDLE_MODULE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
    'content_taxonomy_select' => array(
      'label' => t('Select List'),
      'field types' => array(
        'content_taxonomy',
      ),
      'multiple values' => CONTENT_HANDLE_MODULE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
  );
  return $items;
}