function _javascript_libraries_file_validate in JavaScript Libraries Manager 7
1 call to _javascript_libraries_file_validate()
- javascript_libraries_edit_form_validate in ./
javascript_libraries.admin.inc - Form validate for javascript_libraries_edit_form().
File
- ./
javascript_libraries.admin.inc, line 506 - Administrative management forms for JavaScript libraries.
Code
function _javascript_libraries_file_validate($form, &$form_state) {
if (empty($form_state['values']['js_file_upload'])) {
form_set_error('js_file_upload', 'File field is required when adding a file.');
}
}