| 1 |
<?php |
<?php |
| 2 |
// $Id: autotagging.module,v 1.7 2009/07/24 17:38:20 acstewart Exp $ |
// $Id: autotagging.module,v 1.8 2009/07/27 17:52:01 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 |
|
$terms = array(); |
| 55 |
foreach (module_implements('autotagging_api_'. $op) as $module_name) { |
foreach (module_implements('autotagging_api_'. $op) as $module_name) { |
| 56 |
$terms = module_invoke($module_name, 'autotagging_api_'. $op, $node, $text); |
$terms = module_invoke($module_name, 'autotagging_api_'. $op, $node, $text); |
| 57 |
if ($terms === FALSE) { |
if ($terms === FALSE) { |
| 86 |
switch ($phase) { |
switch ($phase) { |
| 87 |
case 'install': |
case 'install': |
| 88 |
$t = get_t(); |
$t = get_t(); |
| 89 |
|
$requirements = array(); |
| 90 |
$requirements['php'] = array( |
$requirements['php'] = array( |
| 91 |
'title' => $t('PHP'), |
'title' => $t('PHP'), |
| 92 |
'value' => ($phase == 'runtime') ? l(phpversion(), 'admin/logs/status/php') : phpversion(), |
'value' => ($phase == 'runtime') ? l(phpversion(), 'admin/logs/status/php') : phpversion(), |