function _hierarchical_select_log in Hierarchical Select 7.3
Same name and namespace in other branches
- 5.3 hierarchical_select.module \_hierarchical_select_log()
- 6.3 hierarchical_select.module \_hierarchical_select_log()
Append messages to Hierarchical Select's log. Used when in developer mode.
Parameters
$item: Either a message (string) or an array.
$reset: Reset the stored log.
Return value
Only when the log is being reset, the stored log is returned.
4 calls to _hierarchical_select_log()
- _hs_process_developer_mode_log_diagnostics in ./
hierarchical_select.module - _hs_process_developer_mode_log_hierarchy_and_dropbox in ./
hierarchical_select.module - _hs_process_developer_mode_log_selections in ./
hierarchical_select.module - _hs_process_developer_mode_send_log_js in ./
hierarchical_select.module
File
- ./
hierarchical_select.module, line 1619 - 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_log($item, $reset = FALSE) {
static $log;
if ($reset) {
$copy_of_log = $log;
$log = array();
return $copy_of_log;
}
$log[] = $item;
}