function uploadfield_widget_settings_validate in Video 6.4
Same name and namespace in other branches
- 6.5 types/uploadfield/uploadfield_widget.inc \uploadfield_widget_settings_validate()
- 6.3 types/uploadfield/uploadfield_widget.inc \uploadfield_widget_settings_validate()
Implementation of CCK's hook_widget_settings($op = 'validate').
1 call to uploadfield_widget_settings_validate()
- uploadfield_widget_settings in types/
uploadfield/ uploadfield.module - Implementation of CCK's hook_widget_settings().
File
- types/
uploadfield/ uploadfield_widget.inc, line 32 - uploadfield widget hooks and callbacks.
Code
function uploadfield_widget_settings_validate($widget) {
// Check that only web images are specified in the callback.
if (!video_web_extensions($widget['file_extensions'])) {
form_set_error('file_extensions', t('Only web-standard videos are supported through the videoftp widget. If needing to upload other types of files, change the widget to use a standard file upload.'));
}
}