function uc_order_ca_action in Ubercart 6.2
Implements hook_ca_action().
File
- uc_order/
uc_order.ca.inc, line 314 - This file contains the Conditional Actions hooks and functions necessary to make the order related entity, conditions, events, and actions work.
Code
function uc_order_ca_action() {
$order_arg = array(
'#entity' => 'uc_order',
'#title' => t('Order'),
);
$actions['uc_order_update_status'] = array(
'#title' => t('Update the order status'),
'#category' => t('Order'),
'#callback' => 'uc_order_action_update_status',
'#arguments' => array(
'order' => $order_arg,
),
);
$actions['uc_order_action_add_comment'] = array(
'#title' => t('Add a comment to the order'),
'#category' => t('Order'),
'#callback' => 'uc_order_action_add_comment',
'#arguments' => array(
'order' => $order_arg,
),
);
$actions['uc_order_email'] = array(
'#title' => t('Send an order email'),
'#category' => t('Order'),
'#callback' => 'uc_order_action_email',
'#arguments' => array(
'order' => $order_arg,
),
);
$actions['uc_order_email_invoice'] = array(
'#title' => t('Email an order invoice'),
'#category' => t('Order'),
'#callback' => 'uc_order_action_email_invoice',
'#arguments' => array(
'order' => $order_arg,
),
);
return $actions;
}