Permalink
Browse files

Change more tinyint fields to boolean in views.

  • Loading branch information...
1 parent 22c34a4 commit 80f4d08a43a7bdaf7e2c1284242c73b53ab40926 William Johnston committed Nov 5, 2013
Showing with 32 additions and 31 deletions.
  1. +32 −31 ACSViews.views.inc
View
63 ACSViews.views.inc
@@ -285,18 +285,17 @@ function acsviews_views_data() {
'title' => t('MailAddress'),
'help' => t('MailAddress'),
'field' => [
- 'handler' => 'views_handler_field',
+ 'handler' => 'views_handler_field_boolean',
'click sortable' => TRUE,
],
'filter' => [
- 'handler' => 'views_handler_filter_string',
+ 'handler' => 'views_handler_filter_boolean_operator',
+ 'type' => 'yes-no',
+ 'use equal' => TRUE,
],
'sort' => [
'handler' => 'views_handler_sort',
],
- 'argument' => [
- 'handler' => 'views_handler_argument_string',
- ],
],
'Address2' => [
'title' => t('Address2'),
@@ -387,11 +386,13 @@ function acsviews_views_data() {
'title' => t('ActiveAddress'),
'help' => t('ActiveAddress'),
'field' => [
- 'handler' => 'views_handler_field',
+ 'handler' => 'views_handler_field_boolean',
'click sortable' => TRUE,
],
'filter' => [
- 'handler' => 'views_handler_filter_string',
+ 'handler' => 'views_handler_filter_boolean_operator',
+ 'type' => 'yes-no',
+ 'use equal' => TRUE,
],
'sort' => [
'handler' => 'views_handler_sort',
@@ -421,11 +422,13 @@ function acsviews_views_data() {
'title' => t('FamilyAddress'),
'help' => t('FamilyAddress'),
'field' => [
- 'handler' => 'views_handler_field',
+ 'handler' => 'views_handler_field_boolean',
'click sortable' => TRUE,
],
'filter' => [
- 'handler' => 'views_handler_filter_string',
+ 'handler' => 'views_handler_filter_boolean_operator',
+ 'type' => 'yes-no',
+ 'use equal' => TRUE,
],
'sort' => [
'handler' => 'views_handler_sort',
@@ -472,11 +475,13 @@ function acsviews_views_data() {
'title' => t('StatementAddress'),
'help' => t('StatementAddress'),
'field' => [
- 'handler' => 'views_handler_field',
+ 'handler' => 'views_handler_field_boolean',
'click sortable' => TRUE,
],
'filter' => [
- 'handler' => 'views_handler_filter_string',
+ 'handler' => 'views_handler_filter_boolean_operator',
+ 'type' => 'yes-no',
+ 'use equal' => TRUE,
],
'sort' => [
'handler' => 'views_handler_sort',
@@ -688,52 +693,49 @@ function acsviews_views_data() {
'title' => t('Preferred'),
'help' => t('Preferred'),
'field' => [
- 'handler' => 'views_handler_field',
+ 'handler' => 'views_handler_field_boolean',
'click sortable' => TRUE,
],
'filter' => [
- 'handler' => 'views_handler_filter_string',
+ 'handler' => 'views_handler_filter_boolean_operator',
+ 'type' => 'yes-no',
+ 'use equal' => TRUE,
],
'sort' => [
'handler' => 'views_handler_sort',
],
- 'argument' => [
- 'handler' => 'views_handler_argument_string',
- ],
],
'FamilyPhone' => [
'title' => t('FamilyPhone'),
'help' => t('FamilyPhone'),
'field' => [
- 'handler' => 'views_handler_field',
+ 'handler' => 'views_handler_field_boolean',
'click sortable' => TRUE,
],
'filter' => [
- 'handler' => 'views_handler_filter_string',
+ 'handler' => 'views_handler_filter_boolean_operator',
+ 'type' => 'yes-no',
+ 'use equal' => TRUE,
],
'sort' => [
'handler' => 'views_handler_sort',
],
- 'argument' => [
- 'handler' => 'views_handler_argument_string',
- ],
],
'AddrPhone' => [
'title' => t('AddrPhone'),
'help' => t('AddrPhone'),
'field' => [
- 'handler' => 'views_handler_field',
+ 'handler' => 'views_handler_field_boolean',
'click sortable' => TRUE,
],
'filter' => [
- 'handler' => 'views_handler_filter_string',
+ 'handler' => 'views_handler_filter_boolean_operator',
+ 'type' => 'yes-no',
+ 'use equal' => TRUE,
],
'sort' => [
'handler' => 'views_handler_sort',
],
- 'argument' => [
- 'handler' => 'views_handler_argument_string',
- ],
],
'Extension' => [
'title' => t('Extension'),
@@ -870,18 +872,17 @@ function acsviews_views_data() {
'title' => t('Preferred'),
'help' => t('Preferred'),
'field' => [
- 'handler' => 'views_handler_field',
+ 'handler' => 'views_handler_field_boolean',
'click sortable' => TRUE,
],
'filter' => [
- 'handler' => 'views_handler_filter_string',
+ 'handler' => 'views_handler_filter_boolean_operator',
+ 'type' => 'yes-no',
+ 'use equal' => TRUE,
],
'sort' => [
'handler' => 'views_handler_sort',
],
- 'argument' => [
- 'handler' => 'views_handler_argument_string',
- ],
],
'EmailType' => [
'title' => t('EmailType'),

0 comments on commit 80f4d08

Please sign in to comment.