function notifications_views_handler_argument_autocomplete::query in Notifications 6.2
Same name and namespace in other branches
- 7 notifications_views/includes/notifications_views_handler_argument_autocomplete.inc \notifications_views_handler_argument_autocomplete::query()
File
- notifications_views/
notifications_views_handler_argument_autocomplete.inc, line 6
Class
- notifications_views_handler_argument_autocomplete
- Argument handler to accept the first part of a string and complete the rest. See views_handler_filter_string.
Code
function query() {
$this
->ensure_my_table();
$this->query
->add_where(0, "{$this->table_alias}.{$this->real_field} LIKE '%s%%'", $this->argument);
}