/[drupal]/contributions/modules/feedapi/feedapi_inherit/feedapi_inherit.module
ViewVC logotype

Diff of /contributions/modules/feedapi/feedapi_inherit/feedapi_inherit.module

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

revision 1.1.2.14.2.7, Thu Jul 2 16:38:16 2009 UTC revision 1.1.2.14.2.8, Sat Oct 31 16:04:00 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: feedapi_inherit.module,v 1.1.2.14.2.6 2009/06/04 16:30:52 aronnovak Exp $  // $Id: feedapi_inherit.module,v 1.1.2.14.2.7 2009/07/02 16:38:16 aronnovak Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 121  function _feedapi_inherit_do_inherit(&$i Line 121  function _feedapi_inherit_do_inherit(&$i
121        $item_node->taxonomy = array();        $item_node->taxonomy = array();
122      }      }
123      foreach ($terms as $tid => $term) {      foreach ($terms as $tid => $term) {
124        if (!$item_node->taxonomy[$tid]) {        $vid = $term->vid;
125          $item_node->taxonomy[$tid] = $term;        $vocabulary = taxonomy_vocabulary_load($vid);
126          if ($vocabulary->multiple) {
127            if (!(isset($item_node->taxonomy[$vid]) && is_array($item_node->taxonomy[$vid]))) {
128              $item_node->taxonomy[$vid] = array();
129            }
130            if (!in_array($tid, $item_node->taxonomy[$vid])) {
131              $item_node->taxonomy[$vid][$tid] = $tid;
132            }
133          }
134          else {
135            if (!$item_node->taxonomy[$vid]) {
136              $item_node->taxonomy[$vid] = $tid;
137            }
138        }        }
139      }      }
140    }    }

Legend:
Removed from v.1.1.2.14.2.7  
changed lines
  Added in v.1.1.2.14.2.8

  ViewVC Help
Powered by ViewVC 1.1.2