function commerce_sagepay_rules_event_info in Drupal Commerce SagePay Integration 7
Implements hook_rules_event_info().
File
- ./
commerce_sagepay.rules.inc, line 11 - Implements new rules events actions and conditions.
Code
function commerce_sagepay_rules_event_info() {
$events = array();
$events['commerce_sagepay_prepare_transaction'] = array(
'label' => t('Prepare the transaction for sending to Sage Pay.'),
'group' => t('Commerce SagePay'),
'variables' => array(
'transaction' => array(
'label' => t('SagePay Transaction Array'),
'type' => 'array',
),
'commerce_order' => array(
'label' => t('Order', array(), array(
'context' => 'a drupal commerce order',
)),
'type' => 'commerce_order',
'skip save' => TRUE,
),
),
'access callback' => 'commerce_order_rules_access',
);
return $events;
}