home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (uc_shipping.ca.inc)

This example Drupal source code file (uc_shipping.ca.inc) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

array, entity, function, load, object, php, return, shipment, title, type, uc_shipment, uc_shipping_ca_entity, uc_shipping_shipment_load, uc_shipping_shipment_save

The uc_shipping.ca.inc Drupal example source code

// $Id: uc_shipping.ca.inc,v 2009/08/17 21:27:56 islandusurper Exp $

 * @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;

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal uc_shipping.ca.inc source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.