function uc_order_action_add_comment in Ubercart 6.2
Same name and namespace in other branches
- 8.4 uc_order/uc_order.rules.inc \uc_order_action_add_comment()
- 5 uc_order/uc_order_workflow.inc \uc_order_action_add_comment()
- 7.3 uc_order/uc_order.rules.inc \uc_order_action_add_comment()
Add a comment to an order.
See also
uc_order_action_add_comment_form()
1 string reference to 'uc_order_action_add_comment'
- uc_order_ca_action in uc_order/
uc_order.ca.inc - Implements hook_ca_action().
File
- uc_order/
uc_order.ca.inc, line 1163 - 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_action_add_comment($order, $settings) {
uc_order_comment_save($order->order_id, 0, token_replace_multiple($settings['comment'], array(
'global' => NULL,
'order' => $order,
)), $settings['comment_type'] == 'admin' ? 'admin' : 'order', $order->order_status, $settings['comment_type'] == 'notified');
}