Commit b5411b1f authored by alexpott's avatar alexpott

Issue #2003582 by malcomio, zschmid: Rename Views method op_equal() to opEqual().

parent 7b3a7b2f
......@@ -87,10 +87,10 @@ public function query() {
}
}
// By default things like op_equal uses add_where, that doesn't support
// By default things like opEqual uses add_where, that doesn't support
// complex expressions, so override all operators.
function op_equal($expression) {
function opEqual($expression) {
$placeholder = $this->placeholder();
$operator = $this->operator();
$this->query->add_where_expression($this->options['group'], "$expression $operator $placeholder", array($placeholder => $this->value));
......
......@@ -41,13 +41,13 @@ function operators() {
'=' => array(
'title' => t('Is equal to'),
'short' => t('='),
'method' => 'op_equal',
'method' => 'opEqual',
'values' => 1,
),
'!=' => array(
'title' => t('Is not equal to'),
'short' => t('!='),
'method' => 'op_equal',
'method' => 'opEqual',
'values' => 1,
),
'contains' => array(
......@@ -260,7 +260,7 @@ public function query() {
}
}
function op_equal($field) {
public function opEqual($field) {
$this->query->add_where($this->options['group'], $field, $this->value, $this->operator());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment