1.20.x file.admin.inc file_settings_form_validate(&$form, &$form_state)

Validation handler for file_settings_form().

File

modules/file/file.admin.inc, line 581
Admin page callbacks for the File module.

Code

function file_settings_form_validate(&$form, &$form_state) {
  if (isset($form_state['values']['default_file_directory'])) {
    $form_state['values']['default_file_directory'] = trim($form_state['values']['default_file_directory'], '/');
  }
}