Commit c6698cf5 authored by alexpott's avatar alexpott
Browse files

Issue #2003470 by sillygwailo: Rename Views method op_word() to opContainsWord().

parent 486b8b87
...@@ -59,13 +59,13 @@ function operators() { ...@@ -59,13 +59,13 @@ function operators() {
'word' => array( 'word' => array(
'title' => t('Contains any word'), 'title' => t('Contains any word'),
'short' => t('has word'), 'short' => t('has word'),
'method' => 'op_word', 'method' => 'opContainsWord',
'values' => 1, 'values' => 1,
), ),
'allwords' => array( 'allwords' => array(
'title' => t('Contains all words'), 'title' => t('Contains all words'),
'short' => t('has all'), 'short' => t('has all'),
'method' => 'op_word', 'method' => 'opContainsWord',
'values' => 1, 'values' => 1,
), ),
'starts' => array( 'starts' => array(
...@@ -268,7 +268,7 @@ protected function opContains($field) { ...@@ -268,7 +268,7 @@ protected function opContains($field) {
$this->query->add_where($this->options['group'], $field, '%' . db_like($this->value) . '%', 'LIKE'); $this->query->add_where($this->options['group'], $field, '%' . db_like($this->value) . '%', 'LIKE');
} }
function op_word($field) { protected function opContainsWord($field) {
$where = $this->operator == 'word' ? db_or() : db_and(); $where = $this->operator == 'word' ? db_or() : db_and();
// Don't filter on empty strings. // Don't filter on empty strings.
......
Supports Markdown
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