You are here

function environment_context_context_registry in Environment 7

Implements hook_context_registry().

File

modules/environment_context/environment_context.module, line 30
Describe context plugins for Environment Context module.

Code

function environment_context_context_registry() {
  $registry = array();
  $registry['conditions'] = array(
    'environment' => array(
      'title' => t('Environment'),
      'description' => t('Set this context when viewing a page with the given environment.'),
      'plugin' => 'environment_context_condition',
    ),
  );
  return $registry;
}