You are here

function webfm_rename_db_file in Web File Manager 5

Same name and namespace in other branches
  1. 5.2 webfm_file.inc \webfm_rename_db_file()
2 calls to webfm_rename_db_file()
webfm_rename in ./webfm_file.inc
webfm_rename -called from the ajax action - switch case 'rename':
webfm_rename_db_dir_recur in ./webfm_file.inc

File

./webfm_file.inc, line 118

Code

function webfm_rename_db_file($source, $dest, &$err_arr) {
  if ($fid = webfm_get_fid($source)) {
    if (!webfm_dbupdate_file($fid, $dest)) {
      $err_arr[] = t('webfm_dbupdate_file error - fid: ') . $fid;
      return FALSE;
    }
  }
  return TRUE;
}