You are here

function content_taxonomy_autocomplete_widget_info in Content Taxonomy 6

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

Implementation of hook_widget_info().

File

./content_taxonomy_autocomplete.module, line 36
Defines a widget type for content_taxonomy with autocomplete

Code

function content_taxonomy_autocomplete_widget_info() {
  return array(
    'content_taxonomy_autocomplete' => array(
      'label' => t('Autocomplete (Freetagging)'),
      'field types' => array(
        'content_taxonomy',
      ),
      'multiple values' => CONTENT_HANDLE_MODULE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
  );
  return $items;
}