You are here

public function DrupalLocalStreamWrapper::unlink in Drupal 7

Support for unlink().

Parameters

$uri: A string containing the URI to the resource to delete.

Return value

TRUE if resource was successfully deleted.

Overrides StreamWrapperInterface::unlink

See also

http://php.net/manual/streamwrapper.unlink.php

File

includes/stream_wrappers.inc, line 711
Drupal stream wrapper interface.

Class

DrupalLocalStreamWrapper
Drupal stream wrapper base class for local files.

Code

public function unlink($uri) {
  $this->uri = $uri;
  return drupal_unlink($this
    ->getLocalPath());
}