function uc_recurring_fee_user_load in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.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 - @todo Please document this function.
1 string reference to 'uc_recurring_fee_user_load'
- uc_recurring_ca_entity in ./
uc_recurring.ca.inc - Implements hook_ca_entity().
File
- ./
uc_recurring.module, line 779 - 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_query("SELECT ru.*, u.name FROM {uc_recurring_users} ru JOIN {users} u ON u.uid = ru.uid WHERE rfid = :rfid", array(
':rfid' => $rfid,
))
->fetchObject();
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;
}