You are here

function video_widget_settings_file_path_validate in Video 6.4

Same name and namespace in other branches
  1. 6.5 video_widget.inc \video_widget_settings_file_path_validate()
2 string references to 'video_widget_settings_file_path_validate'
uploadfield_widget_settings_form in types/uploadfield/uploadfield_widget.inc
Implementation of CCK's hook_widget_settings($op = 'form').
videoftp_widget_settings_form in types/videoftp/videoftp_widget.inc
Implementation of CCK's hook_widget_settings($op = 'form').

File

./video_widget.inc, line 424
Common widget functions

Code

function video_widget_settings_file_path_validate($element, &$form_state) {

  //lets prepend our video folder to the path settings.  first truncate videos/ off the end if it exists.

  // #848804
  if (!module_exists('filefield_paths')) {
    $form_state['values']['file_path'] = 'videos/' . $form_state['values']['file_path'];
  }
}