function variable_format_boolean in Variable 7.2
Same name and namespace in other branches
- 6 variable.variable.inc \variable_format_boolean()
- 7 variable.variable.inc \variable_format_boolean()
Format boolean variable
1 string reference to 'variable_format_boolean'
- variable_variable_type_info in ./
variable.variable.inc - Implements hook_variable_type_info().
File
- ./
variable.variable.inc, line 262 - Variable module hook implementations
Code
function variable_format_boolean($variable, $options = array()) {
if (isset($variable['value'])) {
return $variable['value'] ? t('True') : t('False');
}
else {
return t('Undefined');
}
}