function _facetapi_removeAccents in Facet API 7
1 call to _facetapi_removeAccents()
- facetapi_sort_display in plugins/
facetapi/ widget.inc - Sorts by display value.
File
- plugins/
facetapi/ widget.inc, line 406 - Base widget plugin class and helper functions for facet sorting.
Code
function _facetapi_removeAccents($string) {
return strtolower(trim(preg_replace('~[^0-9a-z]+~i', '-', preg_replace('~&([a-z]{1,2})(acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml);~i', '$1', htmlentities($string, ENT_QUOTES, 'UTF-8'))), ' '));
}