You are here

function file_aliases_image_process in File Aliases 6

Implements file_aliases_hook_process().

File

modules/image.inc, line 10
Contains Image module integration for the File Aliases module.

Code

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