legacy_filter
modules/legacy/legacy.module, строка 115
- Версии
- 5
legacy_filter($op, $delta = 0, $format = -1, $text = '')
Implementation of hook_filter()
. Handles URL upgrades from Drupal 4.1.
Код
<?php
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;
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии