You are here

function icon_element_info in Icon API 7

Same name and namespace in other branches
  1. 8 includes/element.inc \icon_element_info()

Implements hook_element_info().

File

includes/element.inc, line 11
element.inc Provides hooks and functions for element related tasks.

Code

function icon_element_info() {
  $types['icon_selector'] = array(
    '#input' => TRUE,
    '#tree' => TRUE,
    '#title' => t('Icon'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
    '#default_bundle' => '',
    '#default_icon' => '',
    '#default_wrapper' => '',
    '#default_wrapper_class' => '',
    '#process' => array(
      'form_process_fieldset',
      'form_process_icon_selector',
    ),
    '#pre_render' => array(
      'form_pre_render_fieldset',
    ),
    '#theme_wrappers' => array(
      'fieldset',
    ),
    '#attached' => array(
      'library' => array(
        array(
          'icon',
          'icon_selector',
        ),
      ),
    ),
  );
  return $types;
}