You are here

function uc_taxes_action_info in Ubercart 5

Implementation of hook_action_info().

File

uc_taxes/uc_taxes_workflow.inc, line 49
This file contains the Workflow-ng hooks and functions necessary to make the tax related entity, conditions, events, and actions work.

Code

function uc_taxes_action_info() {
  $actions = array();
  $actions['uc_taxes_action_apply_tax'] = array(
    '#label' => t('Charge a tax'),
    '#arguments' => array(
      'order' => array(
        '#entity' => 'order',
        '#label' => t('Order'),
      ),
      'tax' => array(
        '#entity' => 'tax',
        '#label' => t('Tax'),
      ),
      'tax_line_item' => array(
        '#entity' => 'tax_line_item',
        '#label' => t('Line Item'),
      ),
    ),
    '#module' => t('Taxes'),
  );
  $actions['uc_taxes_action_apply_tax_subtotal'] = array(
    '#label' => t('Apply a subtotal excluding taxes'),
    '#arguments' => array(
      'order' => array(
        '#entity' => 'order',
        '#label' => t('Order'),
      ),
      'tax' => array(
        '#entity' => 'tax',
        '#label' => t('Tax'),
      ),
      'tax_line_item' => array(
        '#entity' => 'tax_line_item',
        '#label' => t('Line Item'),
      ),
    ),
    '#module' => t('Taxes'),
  );
  return $actions;
}