/[drupal]/contributions/modules/country_code/views_handler_field_node_type.inc
ViewVC logotype

Contents of /contributions/modules/country_code/views_handler_field_node_type.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Thu Oct 23 09:14:56 2008 UTC (13 months ago) by snpower
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +6 -1 lines
File MIME type: text/x-php
coding / commenting style changes.
1 <?php
2 // $Id: views_handler_field_node_type.inc,v 1.1 2008/10/20 20:40:55 nedjo Exp $
3
4 /**
5 * @file
6 * Views field handler for node translation.
7 */
8
9 /**
10 * Field handler to translate a node type into its readable form.
11 */
12 class views_handler_field_node_type extends views_handler_field_node {
13 function render($values) {
14 $value = node_get_types('name', $values->{$this->field_alias});
15 return $this->render_link(check_plain($value), $values);
16 }
17 }
18

  ViewVC Help
Powered by ViewVC 1.1.2