You are here

public function elFinderVolumeDrupal::rename in elFinder file manager 7.2

Same name and namespace in other branches
  1. 7.3 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::rename()

Rename file and return file info

Parameters

string $hash file hash:

string $name new file name:

Return value

array|false

File

inc/elfinder.drupalfs.driver.inc, line 588
elFinder driver for Drupal filesystem.

Class

elFinderVolumeDrupal
@file

Code

public function rename($hash, $name) {
  $results = parent::rename($hash, $name);

  // Update any fields that point to this file.
  field_cache_clear();
  return $results;
}