commerce_recurring.admin.inc in Commerce Recurring Framework 7
File
commerce_recurring.admin.inc
View source
<?php
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);
}