function commerce_order_ui_order_uri in Commerce Core 7
Entity uri callback: points to the admin view page of the given order.
1 string reference to 'commerce_order_ui_order_uri'
- commerce_order_ui_entity_info_alter in modules/
order/ commerce_order_ui.module - Implements hook_entity_info_alter().
File
- modules/
order/ commerce_order_ui.module, line 226
Code
function commerce_order_ui_order_uri($order) {
// First look for a return value in the default entity uri callback.
$uri = commerce_order_uri($order);
// If a value was found, return it now.
if (!empty($uri)) {
return $uri;
}
// Only return a value if the user has permission to view the order at its
// admin URI.
if (commerce_order_admin_order_view_access($order)) {
return array(
'path' => 'admin/commerce/orders/' . $order->order_id,
);
}
return NULL;
}