function DrupalLocalStreamWrapper::unlink
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 717
Class
- DrupalLocalStreamWrapper
- Drupal stream wrapper base class for local files.
Code
public function unlink($uri) {
$this->uri = $uri;
return drupal_unlink($this->getLocalPath());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.