watchdog('file','File %file (%realpath) could not be deleted because it is not a valid URI. This may be caused by improper use of file_delete() or a missing stream wrapper.',array('%file'=>$file->uri,'%realpath'=>$realpath));
}
else{
watchdog('file','File %file could not be deleted because it is not a valid URI. This may be caused by improper use of file_delete() or a missing stream wrapper.',array('%file'=>$file->uri));
}
drupal_set_message(t('The specified file %file could not be deleted because it is not a valid URI. More information is available in the system log.',array('%file'=>$file->uri)),'error');
returnFALSE;
}
// If any module still has a usage entry in the file_usage table, the file
// will not be deleted, but file_delete() will return a populated array
$this->assertFileNotExists($node_file_r3,t('Second file is now deleted after deleting third revision, since it is no longer being used by any other nodes.'));
$this->assertFileEntryNotExists($node_file_r3,t('Second file entry is now deleted after deleting third revision, since it is no longer being used by any other nodes.'));
// Delete the entire node and check that the original file is deleted.