context_reaction_theme.module in Context Reaction: Theme 6.2
File
context_reaction_theme.module
View source
<?php
function context_reaction_theme_init() {
if ($plugin = context_get_plugin('reaction', 'context_reaction_active_theme')) {
$plugin
->execute();
}
}
function context_reaction_theme_ctools_plugin_api($module, $api) {
if ($module == 'context' && $api == 'plugins') {
return array(
'version' => 3,
);
}
}
function context_reaction_theme_context_plugins() {
$plugins = array();
$plugins['context_reaction_active_theme'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'context_reaction_theme') . '/plugins',
'file' => 'context_reaction_active_theme.inc',
'class' => 'context_reaction_active_theme',
'parent' => 'context_reaction',
),
);
return $plugins;
}
function context_reaction_theme_context_registry() {
return array(
'reactions' => array(
'context_reaction_active_theme' => array(
'title' => t('Active theme'),
'plugin' => 'context_reaction_active_theme',
),
),
);
}