You are here

function og_panels_set_breadcrumb in Organic groups 5.7

Same name and namespace in other branches
  1. 5.8 og_panels.module \og_panels_set_breadcrumb()
  2. 5 og_panels.module \og_panels_set_breadcrumb()
  3. 5.3 og_panels.module \og_panels_set_breadcrumb()
  4. 6 modules/og_panels/og_panels.module \og_panels_set_breadcrumb()
3 calls to og_panels_set_breadcrumb()
og_panels_edit_content in ./og_panels.module
Pass through to the panels content editor.
og_panels_edit_layout in ./og_panels.module
Pass through to the panels layout editor.
og_panels_edit_layout_settings in ./og_panels.module
Pass through to the panels layout settings editor.

File

./og_panels.module, line 455

Code

function og_panels_set_breadcrumb($section, $group_node = NULL) {
  switch ($section) {
    case 'panel_edit':
      $bc[] = l(t('Home'), '');
      $bc[] = l($group_node->title, "node/{$group_node->nid}");
      $bc[] = l(t('Pages'), "node/{$group_node->nid}/og_panels");
  }
  drupal_set_breadcrumb($bc);
}