flexiform_multistep.rules.inc in Flexiform 7
Rules hooks for multistep.
File
flexiform_multistep/flexiform_multistep.rules.incView source
<?php
/**
* @file
* Rules hooks for multistep.
*/
/**
* Implements hook_rules_event_info_alter().
*/
function flexiform_multistep_rules_event_info_alter(&$events) {
foreach ($events as $name => &$event) {
if (substr($name, 0, 9) == 'flexiform' && !empty($event['variables']['base_entity'])) {
$event['variables']['flexiform_step'] = array(
'type' => 'text',
'label' => t('Step'),
'description' => t('The step that has been submitted.'),
'optional' => TRUE,
);
}
}
}
Functions
Name | Description |
---|---|
flexiform_multistep_rules_event_info_alter | Implements hook_rules_event_info_alter(). |