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