| 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 |
| 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. |