You are here

function _flash_filename in Flash Node 5

Creates a flash filename

2 calls to _flash_filename()
flash_prepare in ./flash.module
Implementation of hook_prepare().
_flash_insert in ./flash.module
Moves temporary file to flash directory and stores information in {files}

File

./flash.module, line 590

Code

function _flash_filename($filename, $temp = FALSE) {

  // get the flash path
  $result = variable_get('flash_default_path', 'flash') . '/';

  // if this is a temporary file, append temp
  if ($temp) {
    $result .= 'temp/';
  }

  // add the filename to build the path
  $result .= $filename;

  // return the result
  return $result;
}