You are here

function og_views_block_search in Organic groups 6

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

File

modules/og_views/og_views.module, line 122

Code

function og_views_block_search() {
  if (!module_exists('search') || !user_access('search content')) {
    return;
  }
  if ($groupnode = og_get_group_context()) {
    $block['content'] = og_views_block_search_form($groupnode);
    $block['subject'] = l($groupnode->title, "node/{$groupnode->nid}");
    return $block;
  }
}