You are here

uc_shipping.ca.inc in Ubercart 6.2

Conditional actions hooks for uc_shipping.module.

File

shipping/uc_shipping/uc_shipping.ca.inc
View source
<?php

/**
 * @file
 * Conditional actions hooks for uc_shipping.module.
 */
function uc_shipping_ca_entity() {
  $entities['uc_shipment'] = array(
    '#title' => t('Ubercart shipment object'),
    '#type' => 'object',
    '#load' => 'uc_shipping_shipment_load',
    '#save' => 'uc_shipping_shipment_save',
  );
  return $entities;
}
function uc_shipping_ca_trigger() {
  $triggers['uc_shipment_save'] = array(
    '#title' => t('A shipment is saved'),
    '#category' => t('Fulfillment'),
    '#arguments' => array(
      'order' => array(
        '#entity' => 'uc_order',
        '#title' => t('Order'),
      ),
      'shipment' => array(
        '#entity' => 'uc_shipment',
        '#title' => t('Shipment'),
      ),
    ),
  );
  return $triggers;
}

Functions

Namesort descending Description
uc_shipping_ca_entity @file Conditional actions hooks for uc_shipping.module.
uc_shipping_ca_trigger