You are here

function autocomplete_widgets_elements in Autocomplete Widgets for Text and Number Fields 6

Implementation of hook_elements().

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

File

./autocomplete_widgets.module, line 77
Provides autocomplete widgets for CCK Text and Number fields.

Code

function autocomplete_widgets_elements() {
  return array(
    'autocomplete_widgets' => array(
      '#input' => TRUE,
      '#columns' => array(
        'value',
      ),
      '#delta' => 0,
      '#process' => array(
        'autocomplete_widgets_process',
      ),
      '#autocomplete_path' => FALSE,
    ),
  );
}