You are here

function ResourceUpload::move in D7 Media 6

Move a Resource.

Parameters

string $destination (optional) @see file_copy.:

int $replace (optional) @see file_destination:

Return value

bool

Overrides Resource::move

See also

file_copy()

File

resource/resource.module, line 362
Resource API for Drupal, a replacement for files.

Class

ResourceUpload

Code

function move($dest) {

  // validate if not already validated, error is validation didn't pass.
  if (!$this->fid && !$this
    ->save()) {
    return FALSE;
  }

  // for upload files we changed the filename in the path to a junk string...
}