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

Diff of /contributions/modules/interests/interests.module

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

revision 1.7, Fri Apr 24 06:43:38 2009 UTC revision 1.7.2.1, Mon Jun 1 12:08:12 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: $  // $Id: interests.module,v 1.7 2009/04/24 06:43:38 agileware Exp $
3    
4  /**  /**
5   * @file interests.module   * @file interests.module
# Line 306  function interests_add_node() { Line 306  function interests_add_node() {
306      $terms = taxonomy_node_get_terms($node);      $terms = taxonomy_node_get_terms($node);
307      if ($terms) {      if ($terms) {
308        foreach ($terms as $term) {        foreach ($terms as $term) {
309          if (interests_is_interest($user->uid, $term->tid)) {          if (in_array($term->vid, $current_vocabs)) {
310            _interests_dynamic_add($term->tid, $user->uid);            _interests_dynamic_add($term->tid, $user->uid);
311          }          }
312        }        }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.7.2.1

  ViewVC Help
Powered by ViewVC 1.1.2