You are here

function activity_views_handler_argument_access::query in Activity 6.2

File

views/activity_views_handler_argument_access.inc, line 35
Argument handler for access control.

Class

activity_views_handler_argument_access
@file Argument handler for access control.

Code

function query() {
  $this
    ->ensure_my_table();
  $realm = $this->options['realm'];
  $this->query
    ->add_where(NULL, "({$this->table_alias}.realm='%s' AND {$this->table_alias}.{$this->real_field} = %d)", $this->options['realm'], $this->argument);
}