You are here

function _views_query::add_where in Views (for Drupal 7) 5

File

./views_query.inc, line 367

Class

_views_query

Code

function add_where($clause) {
  $args = func_get_args();
  array_shift($args);

  // ditch $clause
  if (count($args) == 1 && is_array(reset($args))) {
    $args = current($args);
  }
  if (is_array($args)) {
    $this->where[] = $clause;
    $this->where_args = array_merge($this->where_args, $args);
  }
}