You are here

function fontawesome_iconpicker_field_widget_info in Font Awesome Iconpicker 7

Implements hook_field_widget_info().

File

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

Code

function fontawesome_iconpicker_field_widget_info() {
  return array(
    'fontawesome_iconpicker_textfield' => array(
      'label' => t('Font Awesome iconpicker'),
      'field types' => array(
        'text',
      ),
      'settings' => array(
        'size' => '60',
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_DEFAULT,
        'default value' => FIELD_BEHAVIOR_DEFAULT,
      ),
    ),
    'fontawesome_iconpicker_icon_field' => array(
      'label' => t('Font Awesome iconpicker'),
      'field types' => array(
        'icon_field',
      ),
      'settings' => array(
        'size' => '60',
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_DEFAULT,
        'default value' => FIELD_BEHAVIOR_DEFAULT,
      ),
    ),
  );
}