/[drupal]/contributions/modules/og_vocab/og_vocab.module
ViewVC logotype

Diff of /contributions/modules/og_vocab/og_vocab.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.18.2.19, Wed Feb 18 09:36:43 2009 UTC revision 1.18.2.20, Wed Feb 18 10:39:11 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: og_vocab.module,v 1.18.2.18 2009/01/23 09:56:17 amitaibu Exp $  // $Id: og_vocab.module,v 1.18.2.19 2009/02/18 09:36:43 amitaibu Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 139  function og_vocab_init() { Line 139  function og_vocab_init() {
139    $item = menu_get_item();    $item = menu_get_item();
140    if ($item['path'] == 'taxonomy/term/%') {    if ($item['path'] == 'taxonomy/term/%') {
141      // Get the term id from the menu item, and from it get the vocabulary.      // Get the term id from the menu item, and from it get the vocabulary.
142      $term = taxonomy_get_term($item['page_arguments'][2]);      $term = taxonomy_get_term($item['page_arguments'][0]);
143      // Check if the vocabulary is assoicated with a group.      // Check if the vocabulary is assoicated with a group.
144      if ($gid = og_vocab_get_group($term->vid)) {      if ($gid = og_vocab_get_group($term->vid)) {
145        // Set the group context.        // Set the group context.

Legend:
Removed from v.1.18.2.19  
changed lines
  Added in v.1.18.2.20

  ViewVC Help
Powered by ViewVC 1.1.2