function signup_handler_filter_signup_user_authenticated::query in Signup 7
Same name and namespace in other branches
- 6.2 views/handlers/signup_handler_filter_signup_user_authenticated.inc \signup_handler_filter_signup_user_authenticated::query()
- 6 views/handlers/signup_handler_filter_signup_user_authenticated.inc \signup_handler_filter_signup_user_authenticated::query()
Add this filter to the query.
Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.
Overrides views_handler_filter_boolean_operator::query
File
- views/
handlers/ signup_handler_filter_signup_user_authenticated.inc, line 13
Class
- signup_handler_filter_signup_user_authenticated
- Filter signups based on if the user is anonymous or authenticated.
Code
function query() {
$this
->ensure_my_table();
$this->query
->add_where($this->options['group'], "{$this->table_alias}.{$this->real_field} " . ($this->value ? '!= ' : '= ') . "0");
}