legacy_filter

Versions
4.6 – 5
legacy_filter($op, $delta = 0, $format = -1, $text = '')

Implementation of hook_filter(). Handles URL upgrades from Drupal 4.1.

Code

modules/legacy/legacy.module, line 115

<?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;
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.