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

Diff of /contributions/modules/autotagging/autotagging.module

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

revision 1.4, Sat Jul 11 22:06:07 2009 UTC revision 1.5, Mon Jul 13 17:25:01 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: autotagging.module,v 1.3 2009/07/03 01:11:59 acstewart Exp $  // $Id: autotagging.module,v 1.4 2009/07/11 22:06:07 acstewart Exp $
3  /*  /*
4   * @file autotagging.module   * @file autotagging.module
5   * Module for base Autotagging API.   * Module for base Autotagging API.
# Line 64  function autotagging_nodeapi(&$node, $op Line 64  function autotagging_nodeapi(&$node, $op
64              break;              break;
65            }            }
66          }          }
         foreach (module_implements('autotagging_api_presave') as $module) {  
           // allows modules to act on terms before they're saved.  
           module_invoke($module_name, 'autotagging_api_presave', $node, $terms);  
         }  
67          if (isset($terms) && is_array($terms) && !empty($terms)) {          if (isset($terms) && is_array($terms) && !empty($terms)) {
68            // find the vocabulary with which to associate these terms            // find the vocabulary with which to associate these terms
69            //            //
# Line 81  function autotagging_nodeapi(&$node, $op Line 77  function autotagging_nodeapi(&$node, $op
77            }            }
78          }          }
79        }        }
80          // allows modules to act on terms before they're saved.
81          module_invoke_all('autotagging_api_presave', $node, $terms);
82        taxonomy_node_save($node, $node->taxonomy);        taxonomy_node_save($node, $node->taxonomy);
83        break;        break;
84    }    }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.2