You are here

function search_api_index_options_list in Search API 7

Options list callback for search indexes.

Return value

array An array of search index machine names mapped to their human-readable names.

1 string reference to 'search_api_index_options_list'
search_api_rules_action_info in ./search_api.rules.inc
Implements hook_rules_action_info().

File

./search_api.module, line 3124
Provides a flexible framework for implementing search services.

Code

function search_api_index_options_list() {
  $ret = array(
    NULL => '- ' . t('All') . ' -',
  );
  foreach (search_api_index_load_multiple(FALSE) as $id => $index) {
    $ret[$id] = $index->name;
  }
  return $ret;
}