You are here

function _hierarchical_select_log in Hierarchical Select 6.3

Same name and namespace in other branches
  1. 5.3 hierarchical_select.module \_hierarchical_select_log()
  2. 7.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.

2 calls to _hierarchical_select_log()
hierarchical_select_json in ./hierarchical_select.module
Menu callback; format=text/json; generates and outputs the appropriate HTML.
hierarchical_select_process in ./hierarchical_select.module
Hierarchical select form element type #process callback.

File

./hierarchical_select.module, line 1591
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;
}