function user_file_delete

cis7 user.module user_file_delete($file)
cle7 user.module user_file_delete($file)
elmsmedia7 user.module user_file_delete($file)
icor7 user.module user_file_delete($file)
meedjum_blog7 user.module user_file_delete($file)
mooc7 user.module user_file_delete($file)

Implements hook_file_delete().

File

modules/user/user.module, line 906
Enables the user registration and login system.

Code

function user_file_delete($file) {
  // Remove any references to the file.
  db_update('users')->fields(array('picture' => 0))->condition('picture', $file->fid)->execute();
}