protected function elFinderVolumeDrupal::_unlink in elFinder file manager 6.2
Same name and namespace in other branches
- 8.2 src/Controller/elFinderVolumeDrupal.php \elFinderVolumeDrupal::_unlink()
- 7.3 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::_unlink()
- 7.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::_unlink()
* Remove file * *
Parameters
string $path file path: * @return bool * @author Alexey Sukhotin *
File
- inc/
elfinder.drupalfs.driver.inc, line 234
Class
- elFinderVolumeDrupal
- elFinder driver for Drupal 6 filesystem.
Code
protected function _unlink($path) {
$success = file_delete($path);
$filepath = $this
->_relpathdrupal($path);
if ($success) {
db_query('DELETE FROM {files} WHERE filepath = "%s"', $filepath);
return TRUE;
}
return FALSE;
}