function file_test_validator in Drupal 7
Same name and namespace in other branches
- 8 core/modules/file/tests/file_test/file_test.module \file_test_validator()
- 9 core/modules/file/tests/file_test/file_test.module \file_test_validator()
Helper validator that returns the $errors parameter.
File
- modules/
simpletest/ tests/ file.test, line 12 - This provides SimpleTests for the core file handling functionality. These include FileValidateTest and FileSaveTest.
Code
function file_test_validator($file, $errors) {
return $errors;
}