function user_file_delete

Implements hook_file_delete().

File

modules/user/user.module, line 939

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.