You are here

function user_file_delete in Drupal 7

Implements hook_file_delete().

File

modules/user/user.module, line 930
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();
}