5 * Definition of views_handler_filter_user_current.
9 * Filter handler for the current user.
11 * @ingroup views_filter_handlers
13 class views_handler_filter_user_current extends views_handler_filter_boolean_operator {
14 function construct() {
16 $this->value_value = t('Is the logged in user');
20 $this->ensure_my_table();
22 $field = $this->table_alias . '.' . $this->real_field . ' ';
25 if (empty($this->value)) {
26 $or->condition($field, '***CURRENT_USER***', '<>');
27 if ($this->accept_null) {
32 $or->condition($field, '***CURRENT_USER***', '=');
34 $this->query->add_where($this->options['group'], $or);