function legacy_filter in Drupal 5
Same name and namespace in other branches
- 4 modules/legacy.module \legacy_filter()
Implementation of hook_filter(). Handles URL upgrades from Drupal 4.1.
File
- modules/
legacy/ legacy.module, line 115 - Provides legacy handlers for upgrades from older Drupal installations.
Code
function legacy_filter($op, $delta = 0, $format = -1, $text = '') {
switch ($op) {
case 'list':
return array(
t('Legacy filter'),
);
case 'description':
return t('Replaces URLs from Drupal 4.1 (and lower) with updated equivalents.');
case 'process':
return _legacy_filter_old_urls($text);
case 'settings':
return;
default:
return $text;
}
}