function uc_addresses_access in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 uc_addresses.module \uc_addresses_access()
Checks address access.
Wrapper function for the permissions class.
Parameters
string $method: The method to call in UcAddressesPermissions.
object $address_user: (optional) User object, the owner of the address(es).
UcAddressesAddress: (optional) The address object.
Return value
boolean TRUE if access is granted. FALSE otherwise.
See also
1 string reference to 'uc_addresses_access'
- uc_addresses_menu in ./
uc_addresses.module - Implements hook_menu().
File
- ./
uc_addresses.module, line 447 - Adds user profile address support to Ubercart.
Code
function uc_addresses_access($method, $address_user = NULL, UcAddressesAddress $address = NULL) {
return UcAddressesPermissions::$method($address_user, $address);
}