You are here

function apachesolr_views_handler_argument_node_type::node_type in Apache Solr Views 6

1 call to apachesolr_views_handler_argument_node_type::node_type()
apachesolr_views_handler_argument_node_type::title in handlers/apachesolr_views_handler_argument_node_type.inc

File

handlers/apachesolr_views_handler_argument_node_type.inc, line 12
defines a class to handle node type arguments

Class

apachesolr_views_handler_argument_node_type
@file defines a class to handle node type arguments

Code

function node_type($type) {
  $output = node_get_types('name', $type);
  if (empty($output)) {
    return t('Unknown node type');
  }
  else {
    return check_plain(t($output));
  }
}