1 list.module list_boolean_display_formats(array $options = array())

List of boolean display formats.

File

core/modules/field/modules/list/list.module, line 546
Defines list field types that can be used with the Options module.

Code

function list_boolean_display_formats(array $options = array()) {
  $formats = array(
    'yes-no' => array(t('Yes'), t('No')),
    'true-false' => array(t('True'), t('False')),
    'on-off' => array(t('On'), t('Off')),
    'enabled-disabled' => array(t('Enabled'), t('Disabled')),
    'boolean' => array(1, 0),
    'unicode-yes-no' => array('✔', '✖'),
    'custom' => array(t('Custom')),
  );
  if (isset($options['custom_on']) && isset($options['custom_off'])) {
    $formats['custom'] = array($options['custom_on'], $options['custom_off']);
  }
  return $formats;
}