You are here

function context_og_context_page_condition in Context OG 7

Same name and namespace in other branches
  1. 6.3 context_og.module \context_og_context_page_condition()
  2. 6.2 context_og.module \context_og_context_page_condition()
  3. 7.2 context_og.module \context_og_context_page_condition()

Execute the "set group context" reaction here so that our conditions will work when they get executed. We want to come after organic groups' hook_init() so the context doesn't get switched out from under us.

File

./context_og.module, line 111

Code

function context_og_context_page_condition() {
  $plugin = context_get_plugin('reaction', 'context_og_reaction_set_group_context');
  if ($plugin) {
    $plugin
      ->execute();
  }
}