00001 <?php 00005 class views_handler_argument_node_type extends views_handler_argument { 00006 function construct() { 00007 parent::construct('type'); 00008 } 00009 00014 function summary_name($data) { 00015 return $this->node_type($data->{$this->name_alias}); 00016 } 00017 00022 function title() { 00023 return $this->node_type($this->argument); 00024 } 00025 00026 function node_type($type) { 00027 $output = node_type_get_name($type); 00028 if (empty($output)) { 00029 $output = t('Unknown content type'); 00030 } 00031 return check_plain($output); 00032 } 00033 }