You are here

public function MediaInternetFlickrHandler::save in Media: Flickr 7

File

includes/MediaInternetFlickrHandler.inc, line 19
Define MediaInternetFlickrHandler class.

Class

MediaInternetFlickrHandler
@file Define MediaInternetFlickrHandler class.

Code

public function save() {
  $file = $this
    ->getFileObject();

  // If a user enters a duplicate Flickr URL, the object will be saved again.
  // Set the timestamp to the current time, so that the media item shows up
  // at the top of the media library, where they would expect to see it.
  $file->timestamp = REQUEST_TIME;
  file_save($file);
  return $file;
}