-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebform_workflow.rules.inc
39 lines (38 loc) · 1.09 KB
/
webform_workflow.rules.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* @file
* Rules integration for the Webform Workflow module.
*/
/**
* Implements hook_rules_event_info().
*/
function webform_workflow_rules_event_info() {
return array(
'webform_workflow_transition' => array(
'label' => t('After a webform submission changes state'),
'help' => t('Act after a webform submission transitions to a new workflow state.'),
'group' => t('Webform Workflow'),
'module' => 'webform_workflow',
'variables' => array(
'webform' => array(
'label' => t('Webform'),
'type' => 'node',
),
'submission' => array(
'label' => t('Webform submission'),
'type' => 'webform_workflow_submission',
),
'previous' => array(
'label' => t('Previous submission state'),
'type' => 'webform_workflow_state',
'bundle' => 'webform_workflow_state',
),
'new' => array(
'label' => t('New submission state'),
'type' => 'webform_workflow_state',
'bundle' => 'webform_workflow_state',
),
),
),
);
}