legacy_blog_feed

Versions
4.6 – 5
legacy_blog_feed($str_uid = '')

Menu callback; redirects users to new blog feed paths.

Code

modules/legacy.module, line 104

<?php
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');
  }
}
?>
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.