Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 5

hierarchical_select.module

Version

1.40 (checked in on 2008/03/03 at 16:44:26 by wimleers)

Description

This module defines the "hierarchical_select" form element, which is a greatly enhanced way for letting the user select an option in a hierarchy.

Functions

Namesort iconDescription
hierarchical_select_admin_settingsForm definition; admin settings.
hierarchical_select_elementsImplementation of hook_elements().
hierarchical_select_form_alterImplementation of hook_form_alter().
hierarchical_select_get_dropboxGenerate the dropbox object.
hierarchical_select_get_hierarchyGenerate the hierarchy object.
hierarchical_select_jsonMenu callback; JSON callback: generates and outputs the appropriate HTML.
hierarchical_select_menuImplementation of hook_menu().
hierarchical_select_processHierarchical select form element processing function.
theme_hierarchical_select_dropbox_add_buttonRender the add button.
theme_hierarchical_select_render_dropboxRender the dropbox.
theme_hierarchical_select_render_initial_htmlRender the initial hierarchical select.
theme_hierarchical_select_render_selectsRender the selects.
_hierarchial_select_enforce_deepest_selectionHelper function to update the lineage of the hierarchy to ensure that the user selects an item in the deepest level of the hierarchy.
_hierarchical_select_dropbox_lineage_item_get_labelHelper function needed for the array_map() call in the dropbox sorting callback.
_hierarchical_select_dropbox_lineage_item_get_valueHelper function needed for the array_map() call in the dropbox lineages selections creation.
_hierarchical_select_dropbox_sortDropbox lineages sorting callback.
_hierarchical_select_extract_settingsHelper function to extract the settings from a form item.
_hierarchical_select_reconstruct_lineages_save_lineage_enabledHelper function to reconstruct the lineages given a set of selected items and the fact that the "save lineage" option is enabled.
_hierarchical_select_str_to_boolConvert a "true" or "false" string into the corresponding boolean value, while ignoring the case.
_hierarchical_select_validateHierarchical select form element validate callback.
_hierarchical_select_validate_selectionReset the selection if no valid item was selected. If an array is passed (this happens when the "save lineage" option is enabled), then the first item in the array corresponds to the first selected term. As soon as an invalid item is...
_hierarchical_select_views_exposed_filters_repositionHelper function that adds the JS to reposition the exposed filters of a View just once.