function uc_csv_settings in Ubercart CSV 7.2
Settings form
Controls cron functionality
1 string reference to 'uc_csv_settings'
- uc_csv_menu in ./
uc_csv.module - Implements hook_menu
File
- ./
uc_csv.module, line 126
Code
function uc_csv_settings($form, &$form_state) {
$form['uc_csv_enable_cron'] = array(
'#type' => 'checkbox',
'#title' => t('Enable cron tasks when cron job is run.'),
'#description' => t('Check this if you want the reports to export when crons are run on the intervals below.'),
'#default_value' => variable_get('uc_csv_enable_cron', FALSE),
);
$form['uc_csv_report_interval'] = array(
'#type' => 'select',
'#title' => t('Report export intervals'),
'#description' => t('If cron is enabled, the reports will be exported at the following intervals.'),
'#default_value' => variable_get('uc_csv_report_interval', 86400),
'#options' => array(
'3600' => t('Hourly'),
'10800' => t('Every Three Hours'),
'21600' => t('Every Six Hours'),
'43200' => t('Every Twelve Hours'),
'86400' => t('Once per day'),
),
);
return system_settings_form($form);
}