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

Diff of /contributions/modules/taxonomy_menu/taxonomy_menu.module

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

revision 1.19.2.2, Tue Sep 9 15:00:07 2008 UTC revision 1.19.2.3, Sun Feb 1 02:40:09 2009 UTC
# Line 1  Line 1 
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>
# Line 34  function taxonomy_menu_nodeapi(&$node, $ Line 34  function taxonomy_menu_nodeapi(&$node, $
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    

Legend:
Removed from v.1.19.2.2  
changed lines
  Added in v.1.19.2.3

  ViewVC Help
Powered by ViewVC 1.1.2