24 lines
447 B
PHP
24 lines
447 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* @file
|
||
|
* Install hooks for test profile.
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Implements hook_requirements().
|
||
|
*/
|
||
|
function testing_requirements_requirements($phase) {
|
||
|
$requirements = [];
|
||
|
|
||
|
if ($phase === 'install') {
|
||
|
$requirements['testing_requirements'] = [
|
||
|
'title' => t('Testing requirements'),
|
||
|
'severity' => REQUIREMENT_ERROR,
|
||
|
'description' => t('Testing requirements failed requirements.'),
|
||
|
];
|
||
|
}
|
||
|
|
||
|
return $requirements;
|
||
|
}
|