You are here

function webform_clear_admin_settings in Webform Clear 7.2

Form callback for "admin/config/content/webform_clear"

1 string reference to 'webform_clear_admin_settings'
webform_clear_menu in ./webform_clear.module
Implements hook_menu().

File

./webform_clear.module, line 51
Removes Webform submissions from the database after they have been emailed.

Code

function webform_clear_admin_settings($form, &$form_state) {
  $form = array();
  $form['webform_clear_default_time'] = array(
    '#type' => 'select',
    '#title' => t('Webform submission storage period (default)'),
    '#description' => t('<p>Select the site wide default for how long to store Webform submissions in the database.</p>
                         <p>This default value will apply only to any future Webforms, and can be overridden on a per-form basis by users with the permission "Set Webform submission storage periods".</p>
                         <p>Please note any uploaded files associated to a submission will also be deleted. Email notifications will not be affected.</p>'),
    '#options' => _webform_clear_get_clear_time_options(),
    '#default_value' => variable_get('webform_clear_default_time', WEBFORM_CLEAR_DO_NOT_DELETE),
  );
  return system_settings_form($form);
}