You are here

public function MediaReadOnlyStreamWrapper::unlink in D7 Media 7

Same name and namespace in other branches
  1. 7.4 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::unlink()
  2. 7.2 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::unlink()
  3. 7.3 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::unlink()

DrupalStreamWrapperInterface requires that these methods be implemented, but none of them apply to a read-only stream wrapper. On failure they are expected to return FALSE.

Overrides StreamWrapperInterface::unlink

File

includes/MediaReadOnlyStreamWrapper.inc, line 473

Class

MediaReadOnlyStreamWrapper
A base class for Resource Stream Wrappers.

Code

public function unlink($uri) {

  // Although the remote file itself can't be deleted, return TRUE so that
  // file_delete() can remove the file record from the database.
  return TRUE;
}