protected function FeedsFileFetcher::deleteFile in Feeds 7
Same name and namespace in other branches
- 7.2 plugins/FeedsFileFetcher.inc \FeedsFileFetcher::deleteFile()
Helper. Deletes a file.
2 calls to FeedsFileFetcher::deleteFile()
- FeedsFileFetcher::sourceDelete in plugins/
FeedsFileFetcher.inc - Override parent::sourceDelete().
- FeedsFileFetcher::sourceSave in plugins/
FeedsFileFetcher.inc - Override parent::sourceSave().
File
- plugins/
FeedsFileFetcher.inc, line 169 - Home of the FeedsFileFetcher and related classes.
Class
- FeedsFileFetcher
- Fetches data via HTTP.
Code
protected function deleteFile($fid, $feed_nid) {
if ($file = file_load($fid)) {
file_usage_delete($file, 'feeds', get_class($this), $feed_nid);
file_delete($file);
}
}