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();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.