You are here

function variable_format_boolean in Variable 6

Same name and namespace in other branches
  1. 7.2 variable.variable.inc \variable_format_boolean()
  2. 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 206
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');
  }
}