| 1 |
<?php |
<?php |
| 2 |
// $Id: autotagging.module,v 1.5 2009/07/13 17:25:01 acstewart Exp $ |
// $Id: autotagging.module,v 1.6 2009/07/22 18:24:07 acstewart Exp $ |
| 3 |
/* |
/* |
| 4 |
* @file autotagging.module |
* @file autotagging.module |
| 5 |
* Module for base Autotagging API. |
* Module for base Autotagging API. |
| 80 |
break; |
break; |
| 81 |
} |
} |
| 82 |
} |
} |
| 83 |
|
|
| 84 |
|
function autotagging_requirements($phase) { |
| 85 |
|
switch ($phase) { |
| 86 |
|
case 'install': |
| 87 |
|
$t = get_t(); |
| 88 |
|
$requirements['php'] = array( |
| 89 |
|
'title' => $t('PHP'), |
| 90 |
|
'value' => ($phase == 'runtime') ? l(phpversion(), 'admin/logs/status/php') : phpversion(), |
| 91 |
|
); |
| 92 |
|
if (version_compare(phpversion(), 5) < 0) { |
| 93 |
|
$requirements['php']['description'] = $t('Your PHP installation is too old. Autotagging requires at least PHP %version.', array('%version' => 5)); |
| 94 |
|
$requirements['php']['severity'] = REQUIREMENT_ERROR; |
| 95 |
|
} |
| 96 |
|
return $requirements; |
| 97 |
|
break; |
| 98 |
|
} |
| 99 |
|
} |