You are here

function commerce_gc_rules_action_info in Commerce GC 7

File

./commerce_gc.rules.inc, line 6

Code

function commerce_gc_rules_action_info() {
  $actions['commerce_gc_order_transaction_status_change'] = array(
    'label' => t('Change the status of transactions on an order that match a certain status'),
    'group' => t('Commerce Giftcard'),
    'parameter' => array(
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Order'),
      ),
      'statuses' => array(
        'type' => 'token',
        'label' => t('Statuses'),
        'description' => t('Choose statuses to look for.'),
        'options list' => 'commerce_gc_transaction_status_option_list',
        'multiple' => TRUE,
      ),
      'target_status' => array(
        'type' => 'token',
        'label' => t('Target status'),
        'description' => t('Choose the new status.'),
        'options list' => 'commerce_gc_transaction_status_option_list',
      ),
    ),
  );
  return $actions;
}