apachesolr_views_handler_optionwidget_filter.inc in Apache Solr Views 6
File
handlers/apachesolr_views_handler_optionwidget_filter.inc
View source
<?php
class apachesolr_views_handler_optionwidget_filter extends views_handler_filter {
function query() {
$this->query
->add_filter($this->real_field, $this->value);
}
function value_form(&$form, &$form_state) {
$options = content_allowed_values(content_fields($this->definition['cck_field']['field_name']));
$form['value'] = array(
'#type' => 'select',
'#title' => t($this->definition['cck_field']['label']),
'#options' => $options,
'#default_value' => $this->value,
);
}
}