You are here

context_rules.module in Context Rules 7

Same filename and directory in other branches
  1. 6 context_rules.module

Provides rules integrations for the Context module

see context_rules.rules.inc

File

context_rules.module
View source
<?php

/**
 * @file
 * Provides rules integrations for the Context module
 *
 * see context_rules.rules.inc
 */

/**
 * Implements hook_context_page_reaction().
 */
function context_rules_context_page_reaction() {

  // Invoke rules event for each active context.
  $contexts = context_active_contexts();
  foreach ($contexts as $name => $context) {
    rules_invoke_event('context_active_' . $name, $context);
  }
}