function _cshs_add_none_option in Client-side Hierarchical Select 7
2 calls to _cshs_add_none_option()
- cshs_handler_filter_term_node_tid::value_form in includes/
handlers/ cshs_handler_filter_term_node_tid.inc - Define the actual exposed form.
- _cshs_get_options in ./
cshs.module - Collects the options for a field.
File
- ./
cshs.module, line 310 - A simple clientside hierarchical select widget for taxonomy terms.
Code
function _cshs_add_none_option(&$options) {
$options = array(
CSHS_DEFAULT_NONE_VALUE => array(
'name' => t(CSHS_DEFAULT_NONE_LABEL),
'parent_tid' => 0,
),
) + $options;
}