| 1 |
|
<?php |
| 2 |
|
// $Id: game.install,v 1.3.2.4 2008/11/19 00:11:06 morbus Exp $ |
| 3 |
|
|
| 4 |
|
/** |
| 5 |
|
* @file |
| 6 |
|
* Installation routines for Coder Tough Love. |
| 7 |
|
* |
| 8 |
|
|
| 9 |
|
/** |
| 10 |
|
* Implementation of hook_requirements(). |
| 11 |
|
*/ |
| 12 |
|
function coder_tough_love_requirements($phase) { |
| 13 |
|
$t = get_t(); |
| 14 |
|
$requirements = array(); |
| 15 |
|
|
| 16 |
|
if ($phase == 'runtime') { |
| 17 |
|
if (!function_exists('pspell_news')) { |
| 18 |
|
$requirements['coder_tough_love_pspell'] = array( |
| 19 |
|
'title' => $t('Pspell library'), |
| 20 |
|
'value' => $t('The Pspell library for PHP is missing. Please check the <a href="@url">PHP documentation</a> for information on how to correct this if you\'d like Coder Tough Love to spell check.', array('@url' => 'http://www.php.net/manual/en/book.pspell.php')), |
| 21 |
|
'severity' => REQUIREMENT_WARNING, |
| 22 |
|
); |
| 23 |
|
} |
| 24 |
|
} |
| 25 |
|
|
| 26 |
|
return $requirements; |
| 27 |
|
} |