function filefield_paths_filefield_paths_file_check in File (Field) Paths 6.2
Implements hook_filefield_paths_file_check().
File
- modules/
filefield_paths.inc, line 52 - FileField Paths module integration.
Code
function filefield_paths_filefield_paths_file_check($file, $field) {
foreach (_filefield_paths_includes() as $include) {
if (function_exists($function = "_filefield_paths_include_{$include}_filefield_paths_file_check")) {
if ($function($file, $field) == TRUE) {
return TRUE;
}
}
}
return FALSE;
}