00001 <?php 00002 00008 class views_handler_field_node_comment extends views_handler_field { 00009 function render($values) { 00010 $value = $this->get_value($values); 00011 switch ($value) { 00012 case COMMENT_NODE_HIDDEN: 00013 default: 00014 return t('Hidden'); 00015 case COMMENT_NODE_CLOSED: 00016 return t('Closed'); 00017 case COMMENT_NODE_OPEN: 00018 return t('Open'); 00019 } 00020 } 00021 }