views_handler_filter_course.inc in Course 7.2
File
views/handlers/views_handler_filter_course.inc
View source
<?php
class views_handler_filter_course extends views_handler_filter_boolean_operator {
function query() {
$this
->ensure_my_table();
$field = "{$this->table_alias}.{$this->real_field}";
$types = course_get_types();
$in = $this->value ? 'IN' : 'NOT IN';
$this->query
->add_where($this->options['group'], db_and()
->condition($field, $types, $in));
}
function get_value_options() {
$this->value_options = array(
1 => t('Yes'),
0 => t('No'),
);
}
}