summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryan_nick2012-09-22 12:49:37 (GMT)
committerTim Plunkett2012-10-22 02:48:56 (GMT)
commiteebb9798bbce7020be852fa3170521fe7afcdd08 (patch)
treea6bdb120fa29cfb784acd7dbaf84786f7946acc3
parentee1c96b49fd54ab0587114610f5c69bc165e6612 (diff)
Issue #1791372 by yannickoo: Added 0 and 1 to views_handler_field_boolean().
-rw-r--r--lib/Drupal/views/Plugin/views/field/Boolean.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Drupal/views/Plugin/views/field/Boolean.php b/lib/Drupal/views/Plugin/views/field/Boolean.php
index 323aac5..4fbab84 100644
--- a/lib/Drupal/views/Plugin/views/field/Boolean.php
+++ b/lib/Drupal/views/Plugin/views/field/Boolean.php
@@ -46,6 +46,7 @@ class Boolean extends FieldPluginBase {
'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('✔', '✖'),
);
$output_formats = isset($this->definition['output formats']) ? $this->definition['output formats'] : array();