Commit 1c0ffae5 authored by Jeff Miccolis's avatar Jeff Miccolis
Browse files

Improved display of boolean values.

parent c74a333a
......@@ -89,9 +89,12 @@ function strongarm_admin_revert_submit(&$form, &$form_state) {
* Display variables in a nicer way.
*/
function _strongarm_readable($var) {
if (is_string($var) || is_bool($var) || is_numeric($var)) {
if (is_string($var) || is_numeric($var)) {
return truncate_utf8($var, 30, TRUE, TRUE);
}
else if (is_bool($var)) {
return $var ? 'TRUE' : 'FALSE';
}
else if (is_array($var)) {
$test = $detected = array();
$test['keys'] = array_keys($var);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment