Created
July 24, 2017 14:41
-
-
Save dbjpanda/b416a0e57b2886282db3f731f2fb43df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_facets_search_api_query_type_mapping_alter(). | |
*/ | |
function facets_map_widget_facets_search_api_query_type_mapping_alter($backend_plugin_id, array &$query_types) { | |
if ($backend_plugin_id == 'search_api_solr') { | |
$query_types['location'] = 'search_api_location'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment