You are here

function geofield_proximity_views_handlers in Geofield 7.2

Implements hook proximity_views_handlers().

Returns metainfo about each of the geofield proximity views classes.

File

views/geofield.views.inc, line 73
Hooks for Views integration.

Code

function geofield_proximity_views_handlers() {
  $handlers = array(
    'manual' => array(
      'name' => t('Manually Enter Point'),
      'class' => 'geofieldProximityManual',
      'module' => 'geofield',
      'path' => 'views/proximity_plugins',
    ),
    'entity_from_url' => array(
      'name' => t('Entity From URL'),
      'class' => 'geofieldProximityEntityURL',
      'module' => 'geofield',
      'path' => 'views/proximity_plugins',
    ),
    'current_user' => array(
      'name' => t('Current User'),
      'class' => 'geofieldProximityCurrentUser',
      'module' => 'geofield',
      'path' => 'views/proximity_plugins',
    ),
    'other_geofield' => array(
      'name' => t('Other Geofield'),
      'class' => 'geofieldProximityOtherGeofield',
      'module' => 'geofield',
      'path' => 'views/proximity_plugins',
    ),
    'exposed_geofield_filter' => array(
      'name' => t('Exposed Geofield Proximity Filter'),
      'class' => 'geofieldProximityExposedFilter',
      'module' => 'geofield',
      'path' => 'views/proximity_plugins',
    ),
    'contextual_geofield_filter' => array(
      'name' => t('Contextual Geofield Proximity Filter'),
      'class' => 'geofieldProximityContextualFilter',
      'module' => 'geofield',
      'path' => 'views/proximity_plugins',
    ),
  );
  if (module_exists('geocoder')) {
    $handlers['geocoder'] = array(
      'name' => t('Geocoded Location'),
      'class' => 'geofieldProximityGeocoder',
      'module' => 'geofield',
      'path' => 'views/proximity_plugins',
    );
  }
  return $handlers;
}