function commerce_webform_rules_action_info in Commerce Webform 8
Same name and namespace in other branches
- 7.2 commerce_webform.rules.inc \commerce_webform_rules_action_info()
- 7 commerce_webform.rules.inc \commerce_webform_rules_action_info()
Implements hook_rules_action_info().
File
- ./
commerce_webform.rules.inc, line 83 - Rules extras supplied by the commerce webform module.
Code
function commerce_webform_rules_action_info() {
$actions = array();
$actions['commerce_webform_order_create'] = array(
'label' => t('Create an order from a commerce webform'),
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('The submitted webform node.'),
),
'data' => array(
'type' => 'webform',
'label' => t('The submitted webform data.'),
),
'user' => array(
'type' => 'user',
'label' => t('The user who submitted the webform.'),
),
),
'group' => t('Commerce webform'),
);
$actions['commerce_webform_order_update'] = array(
'label' => t('Update an order from a commerce webform update'),
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('The updated webform node.'),
),
'data' => array(
'type' => 'webform',
'label' => t('The submitted webform data.'),
),
'user' => array(
'type' => 'user',
'label' => t('The user who submitted the webform.'),
),
),
'group' => t('Commerce webform'),
);
$actions['commerce_webform_mark_paid'] = array(
'label' => t('Mark the webform submission as paid'),
'parameter' => array(
'node' => array(
'type' => 'commerce_order',
'label' => t('Order'),
),
),
'group' => t('Commerce webform'),
);
return $actions;
}