| 1 |
<?php
|
| 2 |
//$ Id: $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_requirements
|
| 6 |
*
|
| 7 |
* Alert admins that they need to download the classTextile.php if they haven't already
|
| 8 |
*/
|
| 9 |
|
| 10 |
function textile_requirements($phase) {
|
| 11 |
$requirements = array();
|
| 12 |
|
| 13 |
if ($phase == 'runtime') {
|
| 14 |
if ($error = _textile_lib_check()) {
|
| 15 |
$requirements['textile'] = array(
|
| 16 |
'value' => t('Not installed'),
|
| 17 |
'severity' => REQUIREMENT_ERROR,
|
| 18 |
'description' => $error,
|
| 19 |
);
|
| 20 |
}
|
| 21 |
else {
|
| 22 |
$requirements['textile']['severity'] = REQUIREMENT_OK;
|
| 23 |
}
|
| 24 |
$requirements['textile']['title'] = t('classTextile library');
|
| 25 |
}
|
| 26 |
|
| 27 |
return $requirements;
|
| 28 |
}
|