function rb_thinktwice_page_alter in Rules Bonus Pack 7
Helper for the 'rb_thinktwice_action_page_alter' action. Implements hook_page_alter().
File
- ./
rb_thinktwice.module, line 12 - The most basic parts of the Rules mechanisms for the Think Twice rules.
Code
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']);
}
}
}