You are here

function og_get_breadcrumb in Organic groups 6.2

Same name and namespace in other branches
  1. 6 og.module \og_get_breadcrumb()

Return a breadcrumb array for a given group node.

Parameters

$group_node: Node object for group.

Return value

array

5 calls to og_get_breadcrumb()
og_form_alter in ./og.module
Implementation of hook_form_alter().
og_invite_form in ./og.pages.inc
og_manage in ./og.pages.inc
og_nodeapi in ./og.module
Implementation of hook_nodeapi().
og_view_group in ./og.module
Modifies the group node to serve as a group home page.

File

./og.module, line 1544
Code for the Organic Groups module.

Code

function og_get_breadcrumb($group_node) {
  $bc[] = l(t('Home'), "");
  if (module_exists('og_views')) {
    $bc[] = l(t('Groups'), "og");
  }
  $bc[] = l($group_node->title, "node/{$group_node->nid}");
  return $bc;
}