You are here

function og_views_feed in Organic groups 6.2

Same name and namespace in other branches
  1. 6 modules/og_views/og_views.module \og_views_feed()

Menu callback; Render group feed.

1 string reference to 'og_views_feed'
og_views_menu in modules/og_views/og_views.module
Implementation of hook_menu().

File

modules/og_views/og_views.module, line 59

Code

function og_views_feed($node) {
  $view = views_get_view(variable_get('og_home_page_view', 'og_ghp_ron'));
  $view->is_cacheable = FALSE;
  $view
    ->set_display('feed');

  // TODOL: not working
  $view->override_path = "node/{$node->nid}";
  $view
    ->set_arguments(array(
    $node->nid,
  ));
  $view->display_handler
    ->set_option('style_options', array(
    'description' => $node->og_description,
  ));
  print $view
    ->render();
}