function og_subgroups_views_handler_filter_has_parent::query in Subgroups for Organic groups 6
File
- modules/
og_subgroups_views/ includes/ og_subgroups_views_handler_filter_has_parent.inc, line 12
Class
- og_subgroups_views_handler_filter_has_parent
- Filter handler based on if group has a parent
Code
function query() {
$this
->ensure_my_table();
$where = "{$this->table_alias}.{$this->real_field} ";
if ($this->value) {
$where .= 'IS NOT NULL';
}
else {
$where .= 'IS NULL';
}
$this->query
->add_where($this->options['group'], $where);
}