function legacy_filter in Drupal 4
Same name and namespace in other branches
- 5 modules/legacy/legacy.module \legacy_filter()
Implementation of hook_filter(). Handles URL upgrades from Drupal 4.1.
File
- modules/
legacy.module, line 118 - 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;
}
}