You are here

function entity_autocomplete_element_info in Entity Autocomplete 7

Implements hook_element_info().

File

./entity_autocomplete.module, line 119
Provides functionalities for entity fields autocompletion.

Code

function entity_autocomplete_element_info() {
  return array(
    'entity_autocomplete' => array(
      '#input' => TRUE,
      '#size' => 60,
      '#maxlength' => 128,
      '#autocomplete_path' => FALSE,
      '#entity_type' => 'node',
      '#bundles' => array(),
      '#process' => array(
        'entity_autocomplete_element_process',
        'ajax_process_form',
      ),
      '#element_validate' => array(
        'entity_autocomplete_element_validate',
      ),
      '#value_callback' => 'entity_autocomplete_element_value',
      '#theme' => 'textfield',
      '#theme_wrappers' => array(
        'form_element',
      ),
    ),
  );
}