You are here

rb_thinktwice.module in Rules Bonus Pack 7

The most basic parts of the Rules mechanisms for the Think Twice rules.

File

rb_thinktwice.module
View source
<?php

/**
 * @file
 * The most basic parts of the Rules mechanisms for the Think Twice rules.
 */

/**
 * Helper for the 'rb_thinktwice_action_page_alter' action.
 * Implements hook_page_alter().
 */
function rb_thinktwice_page_alter(&$page) {
  $alter =& drupal_static('rb_page_alter', array());

  // If our action, rb_thinktwice_action_page_alter executed...
  if (!empty($alter)) {
    foreach ($alter as $index => $values) {
      drupal_array_set_nested_value($page, explode(':', $alter[$index]['property']), $alter[$index]['value']);
    }
  }
}

Functions

Namesort descending Description
rb_thinktwice_page_alter Helper for the 'rb_thinktwice_action_page_alter' action. Implements hook_page_alter().