function media_feeds_file_presave in Media Feeds 7
Implements hook_file_presave().
File
- ./
media_feeds.module, line 136 - Implementation of the Feeds mapping API for the media module.
Code
function media_feeds_file_presave($file) {
if (class_exists('MediaFeedsInternetProvider', FALSE)) {
if (MediaFeedsInternetProvider::$currentExistingFile) {
$file->fid = MediaFeedsInternetProvider::$currentExistingFile;
$file->is_new = FALSE;
}
}
}