You are here

function context_reaction_theme_context_plugins in Context Reaction: Theme 7

Same name and namespace in other branches
  1. 6.2 context_reaction_theme.module \context_reaction_theme_context_plugins()

Implements hook_context_plugins().

CTools plugin API hook for Context.

Return value

array Config details for each reaction.

See also

hook_context_plugins()

File

./context_reaction_theme.module, line 66
This module enables a context reaction to alter the active theme.

Code

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_theme.inc',
      'class' => 'context_reaction_active_theme',
      'parent' => 'context_reaction',
    ),
  );
  return $plugins;
}