You are here

function commerce_payment_transaction_uri in Commerce Core 7

Entity uri callback: gives modules a chance to specify a path for a payment transaction.

1 call to commerce_payment_transaction_uri()
commerce_payment_ui_payment_transaction_uri in modules/payment/commerce_payment_ui.module
Entity uri callback: points to the admin view page of the given payment transaction.
1 string reference to 'commerce_payment_transaction_uri'
commerce_payment_entity_info in modules/payment/commerce_payment.module
Implements of hook_entity_info().

File

modules/payment/commerce_payment.module, line 114
Defines the payment system and checkout integration.

Code

function commerce_payment_transaction_uri($transaction) {

  // Allow modules to specify a path, returning the first one found.
  foreach (module_implements('commerce_payment_transaction_uri') as $module) {
    $uri = module_invoke($module, 'commerce_payment_transaction_uri', $transaction);

    // If the implementation returned data, use that now.
    if (!empty($uri)) {
      return $uri;
    }
  }
  return NULL;
}