| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_menu.module,v 1.19.2.1 2008/09/08 19:37:23 afief Exp $ |
// $Id: taxonomy_menu.module,v 1.19.2.2 2008/09/09 15:00:07 afief Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @author Jonathan Chaffer <jchaffer@structureinteractive.com> |
* @author Jonathan Chaffer <jchaffer@structureinteractive.com> |
| 34 |
// First check if the node has a relevant category.s |
// First check if the node has a relevant category.s |
| 35 |
if (empty($vocabs) and is_array($vocabs)) { |
if (empty($vocabs) and is_array($vocabs)) { |
| 36 |
|
|
| 37 |
|
$terms = taxonomy_node_get_terms($node); |
| 38 |
// The node should have taxonomy terms |
// The node should have taxonomy terms |
| 39 |
if (!$terms = taxonomy_node_get_terms($node)) { |
if (empty($terms)) { |
| 40 |
return; |
return; |
| 41 |
} |
} |
| 42 |
|
|