You are here

function legacy_blog_feed in Drupal 5

Same name and namespace in other branches
  1. 4 modules/legacy.module \legacy_blog_feed()

Menu callback; redirects users to new blog feed paths.

1 string reference to 'legacy_blog_feed'
legacy_menu in modules/legacy/legacy.module
Implementation of hook_menu().

File

modules/legacy/legacy.module, line 101
Provides legacy handlers for upgrades from older Drupal installations.

Code

function legacy_blog_feed($str_uid = '') {

  // if URL is of form blog/feed/52 redirect
  // if URL is of form blog/feed we have to call blog_feed_last().
  if (is_numeric($str_uid)) {
    drupal_goto('blog/' . $str_uid . '/feed');
  }
  else {
    module_invoke('blog', 'feed_last');
  }
}