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

Validation handler for file_settings_form().

File

core/modules/file/file.admin.inc, line 582
File type editing user interface.

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'], '/');
  }
}