1 views_handler_field_node_type.inc views_handler_field_node_type::render_name($data, $values)

Render node type as human readable name, unless using machine_name option.

File

core/modules/node/views/views_handler_field_node_type.inc, line 38
Definition of views_handler_field_node_type.

Class

views_handler_field_node_type
Field handler to translate a node type into its readable form.

Code

function render_name($data, $values) {
  if ($this->options['machine_name'] != 1 && $data !== NULL && $data !== '') {
    return t($this->sanitize_value(node_type_get_name($data)));
  }
  return $this->sanitize_value($data);
}