You are here

function search_api_location_get_input_plugin_options in Search API Location 7.2

Returns all available location input plugins as an option list.

Return value

array All available location_input plugins, with their identifiers mapped to their human-readable names.

3 calls to search_api_location_get_input_plugin_options()
SearchApiViewsHandlerFilterLocation::options_form in search_api_location_views/handler_filter_location.inc
Provide the basic form which calls through to subforms.
search_api_location_page_form_search_api_page_admin_add_alter in search_api_location_page/search_api_location_page.module
Implements hook_form_FORM_ID_alter().
search_api_location_page_form_search_api_page_admin_edit_alter in search_api_location_page/search_api_location_page.module
Implements hook_form_FORM_ID_alter().

File

./search_api_location.module, line 165
Provides location based search functionality for the Search API.

Code

function search_api_location_get_input_plugin_options() {
  $options =& drupal_static(__FUNCTION__);
  if (!isset($options)) {
    $options = array();
    foreach (search_api_location_get_input_plugins() as $id => $plugin) {
      $options[$id] = check_plain($plugin['title']);
    }
  }
  return $options;
}