You are here

function fontawesome_iconpicker_element_info in Font Awesome Iconpicker 7

Implements hook_element_info().

File

./fontawesome_iconpicker.module, line 158
Integrates fontawesome-iconpicker plugin with Drupal.

Code

function fontawesome_iconpicker_element_info() {
  $types['fontawesome_iconpicker_textfield'] = array(
    '#input' => TRUE,
    '#size' => 60,
    '#maxlength' => 128,
    '#autocomplete_path' => FALSE,
    '#process' => array(
      'ajax_process_form',
      'fontawesome_iconpicker_process_element',
    ),
    '#theme' => 'textfield',
    '#theme_wrappers' => array(
      'form_element',
    ),
  );
  return $types;
}