You are here

class _og_CrumbsPlugin__group_post in Crumbs, the Breadcrumbs suite 6

Same name and namespace in other branches
  1. 6.2 plugins/crumbs.og.inc \_og_CrumbsPlugin__group_post

Hierarchy

Expanded class hierarchy of _og_CrumbsPlugin__group_post

File

plugins/crumbs.og.inc, line 13

View source
class _og_CrumbsPlugin__group_post {
  function define($h) {
    $types = og_get_types('group_post');
    foreach ($types as $type) {
      $h
        ->addRule($type);
    }
  }
  function findParent__node__($path, $item) {
    $node = $item['map'][1];
    if (is_array($node->og_groups)) {
      foreach ($node->og_groups as $group_nid) {
        return array(
          $node->type => 'node/' . $group_nid,
        );
      }
    }
  }

}

Members