You are here

function uc_stock_ca_action in Ubercart 6.2

Implements hook_action().

File

uc_stock/uc_stock.ca.inc, line 188
This file contains all the Workflow-NG hooks that are necessary for Workflow integeration with the uc_stock module

Code

function uc_stock_ca_action() {
  $actions['uc_stock_action_decrement_stock'] = array(
    '#title' => t('Decrement stock of products on the order with tracking activated.'),
    '#callback' => 'uc_stock_action_decrement_stock',
    '#arguments' => array(
      'order' => array(
        '#entity' => 'uc_order',
        '#title' => t('Order'),
      ),
    ),
    '#category' => t('Stock'),
  );
  $actions['uc_stock_action_increment_stock'] = array(
    '#title' => t('Increment stock of products on the order with tracking activated.'),
    '#callback' => 'uc_stock_action_increment_stock',
    '#arguments' => array(
      'order' => array(
        '#entity' => 'uc_order',
        '#title' => t('Order'),
      ),
    ),
    '#category' => t('Stock'),
  );
  return $actions;
}