You are here

function download_file_settings_submit in DownloadFile 7

Same name and namespace in other branches
  1. 6 download_file.admin.inc \download_file_settings_submit()
  2. 7.3 download_file.admin.inc \download_file_settings_submit()
  3. 7.2 download_file.admin.inc \download_file_settings_submit()

Submit download_file_settings.

File

./download_file.admin.inc, line 52
Download file administration settings.

Code

function download_file_settings_submit($form, &$form_state) {
  $format = check_plain(strip_tags($form_state['values']['download_file_accessible_format']));

  // Set variable for the accessible format.
  variable_set('download_file_accessible_format', $format);
  drupal_set_message(t('The configuration option has been saved.'));
}