You are here

public function apachesolr_views_handler_filter_type::get_value_options in Apache Solr Views 6

1 call to apachesolr_views_handler_filter_type::get_value_options()
apachesolr_views_handler_filter_type::query in handlers/apachesolr_views_handler_filter_type.inc

File

handlers/apachesolr_views_handler_filter_type.inc, line 9

Class

apachesolr_views_handler_filter_type
Class for filtering by type.

Code

public function get_value_options() {
  if (!isset($this->value_options)) {
    $this->value_title = t('Node type');
    $types = node_get_types();
    foreach ($types as $type => $info) {
      $options[$type] = $info->name;
    }
    $this->value_options = $options;
  }
}