You are here

function geocoder_get_handler in Geocoder 7

Fetch geocoder handler.

Given a name, fetch the full handler definition.

4 calls to geocoder_get_handler()
geocoder in ./geocoder.module
The Geocoder API call.
geocoder_field_widget_settings_form in ./geocoder.widget.inc
Implements field_widget_settings_form().
geocoder_service_check_request in ./geocoder.module
Geocoder Service Check Request.
geocoder_widget_get_field_value in ./geocoder.widget.inc
Get a field's value based on geocoded data.

File

./geocoder.module, line 165

Code

function geocoder_get_handler($handler_name) {
  $handlers = geocoder_handler_info();
  if (isset($handlers[$handler_name])) {
    require_once $handlers[$handler_name]['path'] . '/' . $handlers[$handler_name]['file'];
    return $handlers[$handler_name];
  }
  return FALSE;
}