function rb_misc_page_manager_variant_operations_alter in Rules Bonus Pack 7
Implements hook_page_manager_variant_operations().
This function adds a new vertical tab on the Page manager admin pages, with a checkbox to turn on and off the Rules trigger functionality.
File
- ./
rb_misc.module, line 14 - A necessary file for letting Drupal know this is a module. All functionality goes into rb_misc.rules.inc.
Code
function rb_misc_page_manager_variant_operations_alter(&$operations, $handler) {
$operations['children']['reactions'] = array(
'title' => t('Reactions'),
'description' => t('Trigger Rules reactions when this variant is loaded'),
'form' => 'rb_misc_page_manager_variant_trigger_form',
'submit' => 'rb_misc_page_manager_variant_trigger_form_submit',
);
}