You are here

function hierarchical_select_elements in Hierarchical Select 6.3

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

Implementation of hook_elements().

1 call to hierarchical_select_elements()
_hierarchical_select_inherit_default_config in ./hierarchical_select.module
Inherit the default config from Hierarchical Selects' hook_elements().

File

./hierarchical_select.module, line 102
This module defines the "hierarchical_select" form element, which is a greatly enhanced way for letting the user select items in a hierarchy.

Code

function hierarchical_select_elements() {
  $type['hierarchical_select'] = array(
    '#input' => TRUE,
    '#process' => array(
      'hierarchical_select_process',
    ),
    '#config' => array(
      'module' => 'some_module',
      'params' => array(),
      'save_lineage' => 0,
      'enforce_deepest' => 0,
      'entity_count' => 0,
      'require_entity' => 0,
      'resizable' => 1,
      'level_labels' => array(
        'status' => 0,
        'labels' => array(),
      ),
      'dropbox' => array(
        'status' => 0,
        'title' => t('All selections'),
        'limit' => 0,
        'reset_hs' => 1,
      ),
      'editability' => array(
        'status' => 0,
        'item_types' => array(),
        'allowed_levels' => array(),
        'allow_new_levels' => 0,
        'max_levels' => 3,
      ),
      'animation_delay' => variable_get('hierarchical_select_animation_delay', 400),
      'special_items' => array(),
      'render_flat_select' => 0,
      'path' => 'hierarchical_select_json',
    ),
    '#default_value' => -1,
  );
  return $type;
}