You are here

function content_taxonomy_autocomplete_elements in Content Taxonomy 6

Same name and namespace in other branches
  1. 6.2 content_taxonomy_autocomplete.module \content_taxonomy_autocomplete_elements()

Implementation of FAPI hook_elements().

Any FAPI callbacks needed for individual widgets can be declared here, and the element will be passed to those callbacks for processing.

Drupal will automatically theme the element using a theme with the same name as the hook_elements key.

Autocomplete_path is not used by text_widget but other widgets can use it (see nodereference and userreference).

File

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

Code

function content_taxonomy_autocomplete_elements() {
  return array(
    'content_taxonomy_autocomplete' => array(
      '#input' => TRUE,
      '#columns' => array(
        'value',
      ),
      '#delta' => 0,
      '#process' => array(
        'content_taxonomy_autocomplete_process',
      ),
      '#autocomplete_path' => FALSE,
    ),
  );
}