You are here

function _filefield_widget_settings_file_path_validate in FileField 6.2

Same name and namespace in other branches
  1. 6.3 filefield_widget.inc \_filefield_widget_settings_file_path_validate()
1 string reference to '_filefield_widget_settings_file_path_validate'
filefield_widget_settings in ./filefield.module
Implementation of CCK's hook_widget_settings().

File

./filefield.module, line 485

Code

function _filefield_widget_settings_file_path_validate($element, &$form_state) {

  // Strip slashes from the beginning and end of $widget['file_path']
  $form_state['values']['file_path'] = trim($form_state['values']['file_path'], '\\/');
}