You are here

function amp_context_context_plugins in Accelerated Mobile Pages (AMP) 7

Implements hook_context_plugins().

File

modules/amp_context/amp_context.module, line 25
Main module file.

Code

function amp_context_context_plugins() {
  $plugins = array();
  $module_path = drupal_get_path('module', 'amp_context');
  $plugins['amp_context_context_condition_is_amp_request'] = array(
    'handler' => array(
      'path' => $module_path . '/plugins',
      'file' => 'amp_context_context_condition_is_amp_request.inc',
      'class' => 'amp_context_context_condition_is_amp_request',
      'parent' => 'context_condition',
    ),
  );
  return $plugins;
}