You are here

function ip_geoloc_context_plugins in IP Geolocation Views & Maps 8

Same name and namespace in other branches
  1. 7 ip_geoloc.context.inc \ip_geoloc_context_plugins()

Implements hook_context_plugins().

File

./ip_geoloc.context.inc, line 11
Context configuration and hooks.

Code

function ip_geoloc_context_plugins() {
  $plugins = [];
  $plugins['ip_geoloc_context_reaction_locate_visitor'] = [
    'handler' => [
      'path' => drupal_get_path('module', 'ip_geoloc') . '/plugins',
      'file' => 'ip_geoloc_context_reaction_locate_visitor.inc',
      'class' => 'ip_geoloc_context_reaction_locate_visitor',
      'parent' => 'context_reaction',
    ],
  ];
  return $plugins;
}