function pathfilter_filter_info in Path Filter 7
Implements hook_filter_info().
File
- ./
pathfilter.module, line 33 - 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_filter_info() {
return array(
'pathfilter' => array(
'title' => t('Converts internal Drupal paths to absolute URL\'s'),
'description' => t('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.'),
'settings callback' => '_pathfilter_settings',
'default settings' => array(
'link_absolute' => TRUE,
'process_all' => TRUE,
),
'process callback' => '_pathfilter_process',
'tips callback' => '_pathfilter_tips',
),
);
return $filters;
}