function spaces_customtext_requirements in Spaces 6.3
Same name and namespace in other branches
- 7.3 spaces_customtext/spaces_customtext.module \spaces_customtext_requirements()
- 7 spaces_customtext/spaces_customtext.module \spaces_customtext_requirements()
Implementation of hook_requirements()
File
- spaces_customtext/
spaces_customtext.module, line 40 - Spaces Custom Text.
Code
function spaces_customtext_requirements($phase) {
$requirements = array();
$t = get_t();
if ($phase == 'runtime') {
if (module_exists('locale')) {
$requirements['spaces_customtext'] = array(
'title' => $t('Spaces Custom Text compatibility'),
'description' => $t('Spaces Custom Text is not compatible with the Locale module. Either Spaces Custom Text or Locale must be disabled.'),
'severity' => REQUIREMENT_ERROR,
'value' => $t('Incompatible'),
);
}
}
return $requirements;
}