You are here

function file_aliases_upload_process in File Aliases 6

Implements file_aliases_hook_process().

File

modules/upload.inc, line 10
Contains Drupal core Upload module integration for the File Aliases module.

Code

function file_aliases_upload_process(&$node, &$file, &$path, &$alias, &$count) {
  $node->content['files']['#value'] = str_replace($file['field']['filepath'], $alias, $node->content['files']['#value']);
}