function legacy_blog_feed in Drupal 4
Same name and namespace in other branches
- 5 modules/legacy/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.module - Implementation of hook_menu().
File
- modules/
legacy.module, line 104 - 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');
}
}