Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
strongarm
Commits
1c0ffae5
Commit
1c0ffae5
authored
Dec 24, 2009
by
Jeff Miccolis
Browse files
Improved display of boolean values.
parent
c74a333a
Changes
1
Hide whitespace changes
Inline
Side-by-side
strongarm.admin.inc
View file @
1c0ffae5
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment