You are here

function hook_commerce_customer_profile_uri in Commerce Core 7

Allows modules to specify a uri for a customer profile.

When this hook is invoked, the first returned uri will be used for the customer profile. Thus to override the default value provided by the Customer UI module, you would need to adjust the order of hook invocation via hook_module_implements_alter() or your module weight values.

Parameters

$profile: The customer profile object whose uri is being determined.

Return value

The uri elements of an entity as expected to be returned by entity_uri() matching the signature of url().

See also

commerce_customer_profile_uri()

hook_module_implements_alter()

entity_uri()

url()

1 invocation of hook_commerce_customer_profile_uri()
commerce_customer_profile_uri in modules/customer/commerce_customer.module
Entity uri callback: gives modules a chance to specify a path for a customer profile.

File

modules/customer/commerce_customer.api.php, line 93
Hooks provided by the Customer module.

Code

function hook_commerce_customer_profile_uri($profile) {

  // No example.
}