You are here

function uc_recurring_order_get_intervals in UC Recurring Payments and Subscriptions 7.2

Same name and namespace in other branches
  1. 6.2 modules/uc_recurring_order/uc_recurring_order.module \uc_recurring_order_get_intervals()

Callback function to return interval options

Return value

An array of interval options

3 calls to uc_recurring_order_get_intervals()
uc_recurring_admin_edit_form in ./uc_recurring.admin.inc
Let an admin edit a recurring fee.
uc_recurring_order_pane_cart in modules/uc_recurring_order/uc_recurring_order.module
Cart pane recurring form.
uc_recurring_order_pane_checkout in modules/uc_recurring_order/uc_recurring_order.module
Checkout Pane callback function.

File

modules/uc_recurring_order/uc_recurring_order.module, line 94
Provides a way to duplicate entire orders.

Code

function uc_recurring_order_get_intervals() {
  $options = variable_get('uc_recurring_order_interval_options', array());
  foreach ($options as $key => $option) {
    $options[check_plain($key)] = check_plain($option);
  }
  return $options;
}