You are here

function autocomplete_widgets_widget in Autocomplete Widgets for Text and Number Fields 6

Implementation of hook_widget().

File

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

Code

function autocomplete_widgets_widget(&$form, &$form_state, $field, $items, $delta = 0) {
  return array(
    '#type' => 'autocomplete_widgets',
    '#default_value' => isset($items[$delta]) ? $items[$delta] : NULL,
  );
}