You are here

public function viewsSearchQuery::conditions in Views (for Drupal 7) 7.3

Gets a complete list of all conditions in this conditional clause.

This method returns by reference. That allows alter hooks to access the data structure directly and manipulate it before it gets compiled.

The data structure that is returned is an indexed array of entries, where each entry looks like the following:

  'field' => $field,
  'value' => $value,
  'operator' => $operator,

In the special case that $operator is NULL, the $field is taken as a raw SQL snippet (possibly containing a function) and $value is an associative array of placeholders for the snippet.

There will also be a single array entry of #conjunction, which is the conjunction that will be applied to the array, such as AND.

Overrides SelectQueryExtender::conditions


modules/search/, line 213
Definition of views_handler_filter_search.


Extends the core SearchQuery.


public function &conditions() {
  return $this->conditions;