function hook_commerce_order_uri in Commerce Core 7
Allows modules to specify a uri for an order.
When this hook is invoked, the first returned uri will be used for the order. Thus to override the default value provided by the Order UI module, you would need to adjust the order of hook invocation via hook_module_implements_alter() or your module weight values.
Parameters
$order: The order 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
hook_module_implements_alter()
url()
1 invocation of hook_commerce_order_uri()
- commerce_order_uri in modules/
order/ commerce_order.module - Entity uri callback: gives modules a chance to specify a path for an order.
File
- modules/
order/ commerce_order.api.php, line 166 - Hooks provided by the Order module.
Code
function hook_commerce_order_uri($order) {
// No example.
}