function _pathfilter_process in Path Filter 5.2
Same name and namespace in other branches
- 5 pathfilter.module \_pathfilter_process()
- 6.2 pathfilter.module \_pathfilter_process()
- 6 pathfilter.module \_pathfilter_process()
- 7 pathfilter.module \_pathfilter_process()
2 calls to _pathfilter_process()
- pathfilter_filter in ./
pathfilter.module - Implementation of hook_filter().
- _pathfilter_replace_internal in ./
pathfilter.module - Replaces the internal: and files: in elements with the url for it
File
- ./
pathfilter.module, line 108 - 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($format, $convert_to_alias = TRUE, $matches) {
switch ($matches[2]) {
case 'internal':
return _pathfilter_process_internal($format, $convert_to_alias, $matches);
//Converts to alias form.
break;
case 'files':
return _pathfilter_process_files($format, $matches);
}
}