1 views_handler_argument_node_type.inc views_handler_argument_node_type::node_type($type)

File

core/modules/node/views/views_handler_argument_node_type.inc, line 31
Definition of views_handler_argument_node_type.

Class

views_handler_argument_node_type
Argument handler to accept a node type.

Code

function node_type($type) {
  $output = node_type_get_name($type);
  if (empty($output)) {
    $output = t('Unknown content type');
  }
  return check_plain($output);
}