You are here

class apachesolr_views_handler_argument_node_type in Apache Solr Views 6

@file defines a class to handle node type arguments

Hierarchy

Expanded class hierarchy of apachesolr_views_handler_argument_node_type

1 string reference to 'apachesolr_views_handler_argument_node_type'
apachesolr_views_views_data in ./apachesolr_views.views.inc
Implementation of hook_views_data().

File

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

View source
class apachesolr_views_handler_argument_node_type extends apachesolr_views_handler_argument {
  function title() {
    return $this
      ->node_type($this->argument);
  }
  function node_type($type) {
    $output = node_get_types('name', $type);
    if (empty($output)) {
      return t('Unknown node type');
    }
    else {
      return check_plain(t($output));
    }
  }

}

Members