1 user.module | user_file_predelete(File $file) |
Implements hook_file_predelete().
File
- core/
modules/ user/ user.module, line 689 - Enables the user registration and login system.
Code
function user_file_predelete(File $file) {
// Remove any references to the file.
db_update('users')
->fields(array('picture' => 0))
->condition('picture', $file->fid)
->execute();
}