You are here

function commerce_ss_rules_action_info in Commerce Stock 7.2

Implements hook_rules_action_info().

File

modules/commerce_ss/commerce_ss.rules.inc, line 52
Rules integration for Commerce Simple Stock.

Code

function commerce_ss_rules_action_info() {
  $actions = array();
  $actions['commerce_ss_decrease_by_line_item'] = array(
    'label' => t('Decrease the product stock level, given a line item'),
    'group' => t('Commerce Stock (ss)'),
    'parameter' => array(
      'commerce_line_item' => array(
        'type' => 'commerce_line_item',
        'label' => t('Line item'),
      ),
    ),
  );
  $actions['commerce_ss_increase_by_line_item'] = array(
    'label' => t('Increase the product stock level, given a line item'),
    'group' => t('Commerce Stock (ss)'),
    'parameter' => array(
      'commerce_line_item' => array(
        'type' => 'commerce_line_item',
        'label' => t('Line item'),
      ),
    ),
  );
  return $actions;
}