You are here

function workbench_moderation_handler_filter_user_can_moderate::query in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 includes/workbench_moderation_handler_filter_user_can_moderate.inc \workbench_moderation_handler_filter_user_can_moderate::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::query

File

includes/workbench_moderation_handler_filter_user_can_moderate.inc, line 13
Filter based on moderation privlieges.

Class

workbench_moderation_handler_filter_user_can_moderate
@file Filter based on moderation privlieges.

Code

function query() {

  // add table, add node table, add where statments like "(n.type = 'blog' AND moderation.state IN ('review', 'approve')) OR (n.type = 'article' AND moderation.state IN ('review'))"
  // $this->ensure_my_table();
  // $node_alias = $this->query->ensure_table('node');
  // $this->query->add_where();
}