function _webform_rules_event_variables in Webform Rules 6
Same name and namespace in other branches
- 7 webform_rules.rules.inc \_webform_rules_event_variables()
Helper function for event variables.
Return value
All available variables for the rules events provided by webform_rules.
1 call to _webform_rules_event_variables()
- webform_rules_rules_event_info in ./
webform_rules.rules.inc - Implementation of hook_rules_event_info().
File
- ./
webform_rules.rules.inc, line 113 - Functions for rules integration.
Code
function _webform_rules_event_variables() {
return array(
'user' => array(
'type' => 'user',
'label' => t('User, who submitted the webform'),
),
'node' => array(
'type' => 'node',
'label' => t('The webform node'),
),
'data' => array(
'type' => 'webform_data',
'label' => t('The submitted webform data'),
'save' => TRUE,
),
'form_id' => array(
'type' => 'string',
'label' => t('The form id of the submitted form'),
'hidden' => TRUE,
),
'selected_webform' => array(
'type' => 'string',
'label' => t('The webform'),
'hidden' => TRUE,
),
);
}