You are here

function amp_context_context_registry in Accelerated Mobile Pages (AMP) 7

Implements hook_context_registry().

File

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

Code

function amp_context_context_registry() {
  return array(
    'conditions' => array(
      'is_amp_request' => array(
        'title' => t('AMP page'),
        'description' => t('Will be triggered if the page being viewed is an AMP page.'),
        'plugin' => 'amp_context_context_condition_is_amp_request',
      ),
    ),
  );
}