You are here

function uc_stock_rules_action_info in Ubercart 7.3

Implements hook_rules_action_info().

File

uc_stock/uc_stock.rules.inc, line 11
Rules hooks for uc_stock.module.

Code

function uc_stock_rules_action_info() {
  $actions['uc_stock_action_decrement_stock'] = array(
    'label' => t('Decrement stock of products on the order with tracking activated.'),
    'group' => t('Stock'),
    'base' => 'uc_stock_action_decrement_stock',
    'parameter' => array(
      'order' => array(
        'type' => 'uc_order',
        'label' => t('Order'),
      ),
    ),
  );
  $actions['uc_stock_action_increment_stock'] = array(
    'label' => t('Increment stock of products on the order with tracking activated.'),
    'group' => t('Stock'),
    'base' => 'uc_stock_action_increment_stock',
    'parameter' => array(
      'order' => array(
        'type' => 'uc_order',
        'label' => t('Order'),
      ),
    ),
  );
  return $actions;
}