| 1 |
<?php |
<?php |
| 2 |
// $Id: autotagging.module,v 1.6 2009/07/22 18:24:07 acstewart Exp $ |
// $Id: autotagging.module,v 1.7 2009/07/24 17:38:20 acstewart Exp $ |
| 3 |
/* |
/* |
| 4 |
* @file autotagging.module |
* @file autotagging.module |
| 5 |
* Module for base Autotagging API. |
* Module for base Autotagging API. |
| 51 |
$text[] = str_replace("\n", ' ', $node->body); |
$text[] = str_replace("\n", ' ', $node->body); |
| 52 |
$text = implode(' ', $text); |
$text = implode(' ', $text); |
| 53 |
$ignore_setting = variable_get('autotagging_error_handling', 'Defer'); |
$ignore_setting = variable_get('autotagging_error_handling', 'Defer'); |
| 54 |
foreach (module_implements('autotagging_api_' . $op) as $module_name) { |
foreach (module_implements('autotagging_api_'. $op) as $module_name) { |
| 55 |
$terms = module_invoke($module_name, 'autotagging_api_'. $op, $node, $text); |
$terms = module_invoke($module_name, 'autotagging_api_'. $op, $node, $text); |
| 56 |
if ($terms === FALSE) { |
if ($terms === FALSE) { |
| 57 |
// error occurred processing this node for this service |
// error occurred processing this node for this service |