function background_batch_settings_form in Background Process 6
Same name and namespace in other branches
- 7.2 background_batch/background_batch.admin.inc \background_batch_settings_form()
- 7 background_batch/background_batch.pages.inc \background_batch_settings_form()
System settings page.
1 string reference to 'background_batch_settings_form'
- background_batch_menu in background_batch/
background_batch.module - Implements hook_menu().
File
- background_batch/
background_batch.pages.inc, line 15 - Pages for background batch.
Code
function background_batch_settings_form() {
$form = array();
$form['background_batch_delay'] = array(
'#type' => 'textfield',
'#default_value' => variable_get('background_batch_delay', BACKGROUND_BATCH_DELAY),
'#title' => 'Delay',
'#description' => t('Time in microseconds for progress refresh'),
);
$form['background_batch_process_lifespan'] = array(
'#type' => 'textfield',
'#default_value' => variable_get('background_batch_process_lifespan', BACKGROUND_BATCH_PROCESS_LIFESPAN),
'#title' => 'Process lifespan',
'#description' => t('Time in milliseconds for progress lifespan'),
);
$form['background_batch_show_eta'] = array(
'#type' => 'checkbox',
'#default_value' => variable_get('background_batch_show_eta', BACKGROUND_BATCH_PROCESS_ETA),
'#title' => 'Show ETA of batch process',
'#description' => t('Whether ETA (estimated time of arrival) information should be shown'),
);
return system_settings_form($form);
}