You are here

geocoder_field.api.php in Geocoder 8.2

Same filename and directory in other branches
  1. 8.3 modules/geocoder_field/geocoder_field.api.php

Hooks provided by the Geocoder Field module.

File

modules/geocoder_field/geocoder_field.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the Geocoder Field module.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Alter the List of Field types objects of Geocoding operations.
 *
 * Modules may implement this hook to alter the list of possible Geocoding
 * Field Types.
 *
 * @param array $source_fields_types
 *   The list of possible Geocoding Field Types.
 *
 * @see \Drupal\search_api\Backend\BackendPluginBase
 */
function hook_geocode_source_fields_alter(array &$source_fields_types) {
  array_push($source_fields_types, "my_new_field_1", "my_new_field_2");
}

/**
 * Alter the List of Field types objects of Reverse Geocoding operations.
 *
 * Modules may implement this hook to alter the list of Reverse Geocoding
 * Field Types.
 *
 * @param array $source_fields_types
 *   The list of possible Reverse Geocoding Field Types.
 *
 * @see \Drupal\search_api\Backend\BackendPluginBase
 */
function hook_reverse_geocode_source_fields_alter(array &$source_fields_types) {
  array_push($source_fields_types, "my_new_field_1", "my_new_field_2");
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Namesort descending Description
hook_geocode_source_fields_alter Alter the List of Field types objects of Geocoding operations.
hook_reverse_geocode_source_fields_alter Alter the List of Field types objects of Reverse Geocoding operations.