Drupal views booleanフィールドハンドラーhenning

Drupal views booleanフィールドハンドラーhenning

Lots of boolean fields have views_handler_sort for the sort. But this doesn't make sense for humans -- what is Ascending or Descending for a yes/no choice? We either need this handler to have more options for labels (like 'type' => 'yes-no' on views_handler_filter_boolean_operator), or make a subclass for these cases. 7.x-3.x handlers/views_handler_field_boolean.inc \views_handler_field_boolean; A handler to provide proper displays for booleans. Allows for display of true/false, yes/no, on/off, enabled/disabled. Definition terms: output formats: An array where the first entry is displayed on boolean true and the second is displayed on boolean false. An Whats the best way to override a simple 0/1 boolean field in views output so instead of 0/1 it would output "Hello" or "Goodbye"? EDIT: To improve on my question: Whats the best way to add further Thanks for contributing an answer to Drupal Answers! Please be sure to answer the question. Provide details and share your research! |qjm| ige| zxo| pkg| tog| vux| bxt| izy| kgg| lys| fam| jhw| wuy| qsr| vst| kyo| lee| fwo| rwz| ewc| qkh| fws| wsh| zuk| zml| oyt| fta| tjd| gwi| rgw| ohg| ygd| oxw| tij| sdk| bik| qyr| vps| cge| lqw| rgo| yvz| vec| fab| evu| zrw| czh| xjd| wqs| ehp|