function search_api_solr_date_sort_to_string in Search Api Solr Date Sort 7
Custom function to produce the proper name out of the real field id.
3 calls to search_api_solr_date_sort_to_string()
- search_api_solr_date_sort_search_api_solr_field_mapping_alter in ./
search_api_solr_date_sort.module - Implements hook_search_api_solr_field_mapping_alter(_.
- search_api_solr_date_sort_views_data_alter in ./
search_api_solr_date_sort.module - Implementation of hook_views_data_alter().
- _search_api_solr_date_sort_date_fields in ./
search_api_solr_date_sort.module - Creates the initial callback fields
File
- ./
search_api_solr_date_sort.module, line 79 - File for search_api_solr_date_sort.
Code
function search_api_solr_date_sort_to_string($field, $prefix = 'ds') {
return $prefix . '_' . str_replace(':', '$', $field);
}