You are here

function rules_theme_registry_alter in Rules 6

Implementation of hook_theme_registry_alter().

We need to use the alter hook here, so we can make sure we are the first prepross handler called. So drupal messages aren't consumed before the redirect is initiated.

See also

_rules_action_drupal_goto_handler()

Related topics

File

rules/modules/rules.events.inc, line 104
Invokes events for supported modules. Usually this should be directly in the module providing rules integration instead.

Code

function rules_theme_registry_alter(&$items) {
  array_unshift($items['page']['preprocess functions'], '_rules_action_drupal_goto_handler');
}