You are here

function og_feed in Organic groups 5.7

Same name and namespace in other branches
  1. 5.8 og.module \og_feed()
  2. 5 og.module \og_feed()
  3. 5.2 og.module \og_feed()
  4. 5.3 og.module \og_feed()

Menu callback. Handle old feed urls with permanent redirect. Hopefully rss readers respect that. Don't bother with the overhead of drupal_goto()

1 string reference to 'og_feed'
og_menu in ./og.module

File

./og.module, line 2365

Code

function og_feed($gid) {
  header("HTTP/1.1 301 Moved Permanently");
  header('Location: ' . url("node/{$gid}/feed", NULL, NULL, TRUE));
}