You are here

function domaincontext_context_registry in Domain Context 7

Same name and namespace in other branches
  1. 6 domaincontext.module \domaincontext_context_registry()

Implements hook_context_registry().

Register the domaincontext condition in the context registry.

File

./domaincontext.module, line 39
Provides a Domain condition plugin for the Context module.

Code

function domaincontext_context_registry() {
  if (module_exists('domain')) {
    $registry['conditions']['domain'] = array(
      'title' => t('Domain'),
      'description' => t('Set this context when viewing a node depending on its domains.'),
      'plugin' => 'domaincontext_context_condition_domain',
    );
    return $registry;
  }
}