You are here

function uc_order_user_load in Ubercart 6.2

Load an order user if available, else, load the current user.

10 calls to uc_order_user_load()
uc_file_action_order_email in uc_file/uc_file.ca.inc
Sends an email with order and file replacement tokens.
uc_order_action_email in uc_order/uc_order.ca.inc
Sends an email concerning an order.
uc_order_condition_user_created in uc_order/uc_order.ca.inc
Check an user creation date.
uc_order_condition_user_language in uc_order/uc_order.ca.inc
Check an user language setting.
uc_order_condition_user_login in uc_order/uc_order.ca.inc
Check an user last login date.

... See full list

File

uc_order/uc_order.module, line 1156

Code

function uc_order_user_load($order) {
  if (!empty($order->uid)) {
    $user = user_load($order->uid);
  }
  else {
    global $user;
  }
  return $user;
}