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