function uc_payment_load in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_payment/uc_payment.module \uc_payment_load()
- 7.3 payment/uc_payment/uc_payment.module \uc_payment_load()
Load a single payment from the database by receipt_id.
2 calls to uc_payment_load()
- uc_payment_delete in payment/
uc_payment/ uc_payment.module - Delete a payment from the database.
- uc_payment_delete_confirm_form in payment/
uc_payment/ uc_payment.module
File
- payment/
uc_payment/ uc_payment.module, line 1036
Code
function uc_payment_load($receipt_id) {
if (!is_numeric($receipt_id)) {
return FALSE;
}
$result = db_query("SELECT * FROM {uc_payment_receipts} WHERE receipt_id = %d ", $receipt_id);
$payment = db_fetch_object($result);
return $payment;
}