function _pathfilter_process_files in Path Filter 5
Same name and namespace in other branches
- 5.2 pathfilter.module \_pathfilter_process_files()
- 6.2 pathfilter.module \_pathfilter_process_files()
- 6 pathfilter.module \_pathfilter_process_files()
- 7 pathfilter.module \_pathfilter_process_files()
1 call to _pathfilter_process_files()
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];
}