You are here

function _download_get_filename in Download 7.2

1 call to _download_get_filename()
download_download in ./download.module

File

./download.module, line 310
Handles module administration and download link

Code

function _download_get_filename($filename, $entity, $entity_type) {
  $fn = token_replace(check_plain($filename), array(
    $entity_type => $entity,
  ));
  $fn = preg_replace("/[^a-zA-Z0-9\\.\\-_]/", "", $fn);
  return $fn;
}