You are here

function search_api_sorts_load_multiple in Search API sorts 7

Load multiple sorts at once, determined by IDs, deltas or other conditions.

Parameters

array $ids: An array of sort IDs or machine names.

array $conditions: An array of conditions on the {search_api_sort} table in the form 'field' => $value.

bool $reset: Whether to reset the internal entity_load cache.

Return value

array An array of SearchApiSort objects keyed by machine name.

See also

entity_load()

1 call to search_api_sorts_load_multiple()
search_api_sorts_index_select in ./search_api_sorts.admin.inc
Displays a form for selecting the indexed fields for which to create sorts.

File

./search_api_sorts.module, line 320
Create sort options for search queries executed via the Search API.

Code

function search_api_sorts_load_multiple($ids = array(), $conditions = array(), $reset = FALSE) {
  return entity_load('search_api_sort', $ids, $conditions, $reset);
}