function file_entity_has_file_changed in File Entity (fieldable files) 7.2
Same name and namespace in other branches
- 7.3 file_entity.file.inc \file_entity_has_file_changed()
Returns whether the file has changed
1 call to file_entity_has_file_changed()
- file_entity_file_update in ./
file_entity.file.inc - Implements hook_file_update().
File
- ./
file_entity.file.inc, line 132 - File hooks implemented by the File entity module.
Code
function file_entity_has_file_changed($file) {
return empty($file->is_new) ? empty($file->original) || $file->filesize != $file->original->filesize || $file->uri != $file->original->uri : FALSE;
}