You are here

function _hierarchical_select_str_to_bool in Hierarchical Select 5.2

Convert a "true" or "false" string into the corresponding boolean value, while ignoring the case.

Parameters

$string: The string to convert.

Return value

The boolean value.

1 call to _hierarchical_select_str_to_bool()
hierarchical_select_json in ./hierarchical_select.module
Menu callback; JSON callback: generates and outputs the appropriate HTML.

File

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

Code

function _hierarchical_select_str_to_bool($string) {
  return strcasecmp($string, 'TRUE') == 0;
}