You are here

function hierarchical_select_elements in Hierarchical Select 5

Same name and namespace in other branches
  1. 5.3 hierarchical_select.module \hierarchical_select_elements()
  2. 5.2 hierarchical_select.module \hierarchical_select_elements()
  3. 6.3 hierarchical_select.module \hierarchical_select_elements()

Implementation of hook_elements().

File

./hierarchical_select.module, line 62
This module defines the "hierarchical_select" form element, which is a greatly enhanced way for letting the user select an option in a hierarchy. Out of the box, this module supports the taxonomy and content_taxonomy modules, but that…

Code

function hierarchical_select_elements() {
  $type['hierarchical_select'] = array(
    '#input' => TRUE,
    '#process' => array(
      'hierarchical_select_process' => array(),
    ),
    '#hierarchical_select_settings' => array(),
    '#default_value' => -1,
  );
  return $type;
}