You are here

function uc_addresses_address_load in Ubercart Addresses 6

Same name and namespace in other branches
  1. 6.2 uc_addresses.module \uc_addresses_address_load()
  2. 7 uc_addresses.module \uc_addresses_address_load()

Given a wildcard of %uc_addresses_address in path, replace it with the corresponding address object.

Parameters

$aid The value matched by %uc_addresses_address.:

$uid The value of the user ID in the same path.:

Return value

FALSE if the value is a valid address, else the address object.

1 call to uc_addresses_address_load()
uc_addresses_token_values in ./uc_addresses.module
Implementation of hook_token_values().

File

./uc_addresses.module, line 65

Code

function uc_addresses_address_load($aid, $uid) {
  if (!isset($aid)) {
    return FALSE;
  }
  return _uc_addresses_db_get_address($uid, $aid);
}