public function name_handler_filter_name_fulltext::op_contains in Name Field 7
File
- includes/
name_handler_filter_name_fulltext.inc, line 94
Class
- name_handler_filter_name_fulltext
- Field handler to provide simple renderer that allows linking to a entity.
Code
public function op_contains($fulltext_field) {
$value = drupal_strtolower($this->value);
$placeholder = $this
->placeholder();
$this->query
->add_where_expression($this->options['group'], "{$fulltext_field} LIKE {$placeholder}", array(
$placeholder => '% ' . db_like($value) . '%',
));
}