You are here

function commerce_sermepa_rules_event_info in Commerce sermepa 7

Implements hook_rules_event_info().

File

./commerce_sermepa.rules.inc, line 24
Rules integration for the commerce sermepa module.

Code

function commerce_sermepa_rules_event_info() {
  $items = array();
  $items['commerce_sermepa_gateway'] = array(
    'label' => t('Configure Sermepa/Redsys gateway to a given order'),
    'group' => t('Commerce Sermepa'),
    'variables' => array(
      'commerce_sermepa_gateway_instance' => array(
        'type' => 'commerce_sermepa_gateway_instance',
        'label' => t('Sermepa/Redsys gateway'),
      ),
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Order', array(), array(
          'context' => 'a drupal commerce order',
        )),
      ),
    ),
    'access callback' => 'commerce_order_rules_access',
  );
  return $items;
}