function user_file_delete

Implements hook_file_delete().

Archivo

drupal-7.x/modules/user/user.module, line 906
Enables the user registration and login system.

Código

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