Commit c6698cf5 authored by alexpott's avatar alexpott

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

parent 486b8b87
......@@ -59,13 +59,13 @@ function operators() {
'word' => array(
'title' => t('Contains any word'),
'short' => t('has word'),
'method' => 'op_word',
'method' => 'opContainsWord',
'values' => 1,
),
'allwords' => array(
'title' => t('Contains all words'),
'short' => t('has all'),
'method' => 'op_word',
'method' => 'opContainsWord',
'values' => 1,
),
'starts' => array(
......@@ -268,7 +268,7 @@ protected function opContains($field) {
$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();
// Don't filter on empty strings.
......
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