public function views_handler_filter_string::op_contains in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 handlers/views_handler_filter_string.inc \views_handler_filter_string::op_contains()
- 6.2 handlers/views_handler_filter_string.inc \views_handler_filter_string::op_contains()
1 method overrides views_handler_filter_string::op_contains()
File
- handlers/
views_handler_filter_string.inc, line 282 - Definition of views_handler_filter_string.
Class
- views_handler_filter_string
- Basic textfield filter to handle string filtering commands including equality, like, not like, etc.
Code
public function op_contains($field) {
if (!empty($this->value)) {
$this->query
->add_where($this->options['group'], $field, '%' . db_like($this->value) . '%', 'LIKE');
}
}