You are here

function commerce_recurring_admin_form in Commerce Recurring Framework 7

Form builder to display admin form

1 string reference to 'commerce_recurring_admin_form'
commerce_recurring_menu in ./commerce_recurring.module
Implements hook_menu().

File

./commerce_recurring.admin.inc, line 14

Code

function commerce_recurring_admin_form($form, $form_state) {
  $form = array();
  $form['commerce_recurring_batch_process'] = array(
    '#type' => 'select',
    '#options' => drupal_map_assoc(range(1, 50)),
    '#title' => t('Batch size'),
    '#description' => t('Recurring orders are process in batches of this size.'),
    '#default_value' => variable_get('commerce_recurring_batch_process', 20),
  );
  $form['commerce_recurring_payment_interval'] = array(
    '#type' => 'select',
    '#field_suffix' => t(' days'),
    '#options' => drupal_map_assoc(range(0, 30)),
    '#title' => t('Payment due'),
    '#description' => t('Payments for recurring orders are due this many days after the order is created.'),
    '#default_value' => variable_get('commerce_recurring_payment_interval', 20),
  );
  return system_settings_form($form);
}