You are here

function _pathfilter_process_files in Path Filter 5

Same name and namespace in other branches
  1. 5.2 pathfilter.module \_pathfilter_process_files()
  2. 6.2 pathfilter.module \_pathfilter_process_files()
  3. 6 pathfilter.module \_pathfilter_process_files()
  4. 7 pathfilter.module \_pathfilter_process_files()
1 call to _pathfilter_process_files()
_pathfilter_process in ./pathfilter.module

File

./pathfilter.module, line 133
This filter takes internal Drupal paths in double quotes, written as e.g. "internal:node/99", and replaces them with the appropriate absolute http URL using Drupal's url() function [1]. E.g. for a site located at http://example.com/mysite

Code

function _pathfilter_process_files($matches) {
  return $matches[1] . file_create_url($matches[3]) . $matches[1];
}