You are here

function og_block_details in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og.module \og_block_details()
  2. 5.2 og.module \og_block_details()
  3. 5.3 og.module \og_block_details()
  4. 5.7 og.module \og_block_details()
  5. 6.2 og.module \og_block_details()
  6. 6 og.module \og_block_details()
1 call to og_block_details()
og_block in ./og.module
Implementation of hook_block().

File

./og.module, line 2594

Code

function og_block_details() {

  // only display group details if we have a group context
  if (($node = og_get_group_context()) && node_access('view', $node)) {

    // allow other og-enabled node types to provide their own block details
    $block = module_invoke($node->type, 'og_block_details', $node);
    if (!$block) {
      $block = og_og_block_details($node);
    }
    return $block;
  }
}