function commerce_coupon_usage_transaction_load in Commerce Coupon 7.2
Load a coupon usage transaction entity
Parameters
int $transaction_id: A usage transaction id.
bool $reset: Whether or not to reset the entity cache.
Return value
object A usage transaction entity.
File
- modules/
usage/ commerce_coupon_usage.module, line 274
Code
function commerce_coupon_usage_transaction_load($transaction_id, $reset = FALSE) {
$transactions = commerce_coupon_usage_transaction_load_multiple(array(
$transaction_id,
), array(), $reset);
return reset($transactions);
}