| 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. |
| 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 |
// |
// |
| 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 |
} |
} |