You are here

function uc_notify_order in Ubercart 5

Implementation of hook_order().

File

uc_notify/uc_notify.module, line 118
Handles configuration and execution of email notifications.

Code

function uc_notify_order($op, $arg1, $arg2) {
  switch ($op) {
    case 'update':
      foreach (uc_order_status_list('general') as $data) {
        $statuses[] = $data['id'];
      }
      if (uc_order_status_data($arg1->order_status, 'state') == 'in_checkout' && in_array($arg2, $statuses)) {
        uc_notify_checkout($arg1);
      }
      break;
  }
}