You are here

function uc_recurring_fee_user_load in UC Recurring Payments and Subscriptions 6.2

Same name and namespace in other branches
  1. 7.2 uc_recurring.module \uc_recurring_fee_user_load()

Loads a recurring fee from a user.

Parameters

$rfid: The recurring fee ID to load.

Return value

The recurring fee object.

25 calls to uc_recurring_fee_user_load()
ucRecurringAPITestCase::testRecurringOrders in ./uc_recurring.test
Test customer functions of purchasing an order with recurring product.
ucRecurringTestCase::processRecurringFee in ./uc_recurring.test
Process a recurring fee.
uc_recurring_admin in ./uc_recurring.admin.inc
Displays a table for the administration of recurring fees.
uc_recurring_admin_charge_form in ./uc_recurring.admin.inc
Confirm a recurring fee charge.
uc_recurring_admin_charge_form_submit in ./uc_recurring.admin.inc

... See full list

1 string reference to 'uc_recurring_fee_user_load'
uc_recurring_ca_entity in ./uc_recurring.ca.inc
Implementation of hook_ca_entity().

File

./uc_recurring.module, line 804
Allows you to add a recurring fee to a product/SKU to handle subscription type services.

Code

function uc_recurring_fee_user_load($rfid) {
  $fee = db_fetch_object(db_query("SELECT * FROM {uc_recurring_users} WHERE rfid = %d", $rfid));
  if ($fee) {
    $fee->data = unserialize($fee->data);

    // Allow other modules to change the saved data.
    drupal_alter('recurring_fee_user_load', $fee);
    return $fee;
  }
  return FALSE;
}