function uc_recurring_get_all_fees in UC Recurring Payments and Subscriptions 6.2
Same name and namespace in other branches
- 7.2 uc_recurring.module \uc_recurring_get_all_fees()
Get all fees is the system.
1 call to uc_recurring_get_all_fees()
- uc_recurring_admin in ./
uc_recurring.admin.inc - Displays a table for the administration of recurring fees.
File
- ./
uc_recurring.module, line 921 - Allows you to add a recurring fee to a product/SKU to handle subscription type services.
Code
function uc_recurring_get_all_fees($pager = FALSE, $order = '') {
$fees = array();
$sql = "SELECT ru.*, u.name FROM {uc_recurring_users} ru LEFT JOIN {users} u ON u.uid=ru.uid" . $order;
if ($pager) {
$result = pager_query($sql, variable_get('uc_order_number_displayed', 30));
}
else {
$result = db_query($sql);
}
while ($fee = db_fetch_object($result)) {
$fees[$fee->rfid] = $fee;
$fee->data = unserialize($fee->data);
}
return $fees;
}