You are here

function og_views_block_search_form in Organic groups 6

Same name and namespace in other branches
  1. 6.2 modules/og_views/og_views.module \og_views_block_search_form()
1 call to og_views_block_search_form()
og_views_block_search in modules/og_views/og_views.module

File

modules/og_views/og_views.module, line 133

Code

function og_views_block_search_form($groupnode) {

  // Render our display programmatically after adding an argument. Take that!
  $view = views_get_view('og_search');
  $view
    ->set_display('default');
  $view
    ->set_arguments(array(
    $groupnode->nid,
  ));
  $block = $view->display_handler
    ->view_special_blocks('-exp');
  return $block['content'];
}