function sassy_requirements in Sassy 7.3
Same name and namespace in other branches
- 7.2 sassy.install \sassy_requirements()
Implementation of hook_requirements().
File
- ./
sassy.install, line 21 - Install, update and uninstall functions for the SASSY module.
Code
function sassy_requirements($phase) {
$t = get_t();
if ($phase == 'install') {
$requirements = array();
$libraries = libraries_get_libraries();
if (isset($libraries['phamlp'])) {
$requirements['phamlp']['value'] = $t('PHamlP is installed.');
$requirements['phamlp']['severity'] = REQUIREMENT_OK;
}
else {
$requirements['phamlp']['value'] = $t('PHamlP is not installed.');
$requirements['phamlp']['severity'] = REQUIREMENT_ERROR;
$requirements['phamlp']['description'] = $t('Please download the PHamlP library from %github and place it in the sites/all/libraries directory.', array(
'%github' => 'https://github.com/richthegeek/phamlp',
));
}
}
return $requirements;
}