public function views_handler_filter_string::op_shorter 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_shorter()
File
- handlers/
views_handler_filter_string.inc, line 362 - 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_shorter($field) {
$placeholder = $this
->placeholder();
$this->query
->add_where_expression($this->options['group'], "LENGTH({$field}) < {$placeholder}", array(
$placeholder => $this->value,
));
}