function domaincontext_context_registry in Domain Context 6
Same name and namespace in other branches
- 7 domaincontext.module \domaincontext_context_registry()
Implements hook_context_registry().
Register the domaincontext condition in the context registry.
File
- ./
domaincontext.module, line 40 - 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;
}
}