Commit 70d3d8d7 authored by webchick's avatar webchick
Browse files

Issue #2003528 by toddtomlinson, tvlooy, marlatt | heddn: Rename Views method...

Issue #2003528 by toddtomlinson, tvlooy, marlatt | heddn: Rename Views method op_shorter() to opShorterThan().
parent dc05265a
......@@ -101,7 +101,7 @@ function operators() {
'shorterthan' => array(
'title' => t('Length is shorter than'),
'short' => t('shorter than'),
'method' => 'op_shorter',
'method' => 'opShorterThan',
'values' => 1,
),
'longerthan' => array(
......@@ -321,7 +321,7 @@ function op_not($field) {
$this->query->add_where($this->options['group'], $field, '%' . db_like($this->value) . '%', 'NOT LIKE');
}
function op_shorter($field) {
protected function opShorterThan($field) {
$placeholder = $this->placeholder();
$this->query->add_where_expression($this->options['group'], "LENGTH($field) < $placeholder", array($placeholder => $this->value));
}
......
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