You are here

function uc_recurring_order_get_intervals in UC Recurring Payments and Subscriptions 6.2

Same name and namespace in other branches
  1. 7.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

2 calls to uc_recurring_order_get_intervals()
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 92
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;
}