You are here

function _pathfilter_process in Path Filter 6

Same name and namespace in other branches
  1. 5.2 pathfilter.module \_pathfilter_process()
  2. 5 pathfilter.module \_pathfilter_process()
  3. 6.2 pathfilter.module \_pathfilter_process()
  4. 7 pathfilter.module \_pathfilter_process()
1 call to _pathfilter_process()
pathfilter_filter in ./pathfilter.module
Implementation of hook_filter().

File

./pathfilter.module, line 106
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, $matches) {
  switch ($matches[2]) {
    case 'internal':
      return _pathfilter_process_internal($format, $matches);
      break;
    case 'files':
      return _pathfilter_process_files($matches);
  }
}