On this page
function user_file_delete
user_file_delete($file)
  Implements hook_file_delete().
File
- modules/user/user.module, line 932
 - 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();
}
  © 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
 https://api.drupal.org/api/drupal/modules!user!user.module/function/user_file_delete/7.x