You are here

function icon_field_field_info in Icon API 7

Implements hook_field_info().

File

modules/icon_field/icon_field.module, line 11
icon_field.module Provides a field for attaching an icon to a fieldable entity.

Code

function icon_field_field_info() {
  return array(
    'icon_field' => array(
      'label' => t('Icon'),
      'description' => t('Store a bundle and icon in the database to assemble an icon field.'),
      'settings' => array(
        'bundle' => NULL,
        'icon' => NULL,
        'wrapper' => NULL,
        'wrapper_class' => NULL,
      ),
      'instance_settings' => array(
        'bundle' => NULL,
        'icon' => NULL,
      ),
      'default_widget' => 'icon_field',
      'default_formatter' => 'icon_field_default',
    ),
  );
}