You are here

function commerce_webform_rules_event_info in Commerce Webform 8

Same name and namespace in other branches
  1. 7.2 commerce_webform.rules.inc \commerce_webform_rules_event_info()

Implements hook_rules_event_info().

File

./commerce_webform.rules.inc, line 11
Rules extras supplied by the commerce webform module.

Code

function commerce_webform_rules_event_info() {
  return array(
    'commerce_webform_quantity_changed_during_checkout' => array(
      'label' => t('After user pays for a different quantity of product'),
      'help' => t('When the user has paid in full, the webform submission is updated. If the quantity changed between filling in the original form and paying, the webform is updated already with the new quantity and this rule provides site administrators to act on the alterations.'),
      'group' => t('Commerce Webform'),
      'variables' => array(
        'commerce_order' => array(
          'type' => 'commerce_order',
          'label' => t('The commerce order'),
        ),
        'webform_node' => array(
          'type' => 'node',
          'label' => t('The webform node'),
        ),
        'sid' => array(
          'type' => 'integer',
          'label' => t('The webform submission ID'),
        ),
      ),
    ),
  );
}