function veh_endsWith in Extra Views Handlers 7
1 call to veh_endsWith()
- views_extra_handlers_handler_field_query_alter::query in views/
handlers/ views_extra_handlers_handler_field_query_alter.inc - Called to add the field to a query.
File
- ./
views_extra_handlers.module, line 157 - Provides a generic but powerful API for web services.
Code
function veh_endsWith($haystack, $needle) {
return $needle === "" || substr($haystack, -strlen($needle)) === $needle;
}