function tripal_feature_requirements
2.x tripal_feature.install | tripal_feature_requirements($phase) |
3.x tripal_feature.install | tripal_feature_requirements($phase) |
1.x tripal_feature.install | tripal_feature_requirements($phase) |
Implements hook_requirements().
File
- legacy/
tripal_feature/ tripal_feature.install, line 30 - Installation of the feature module
Code
function tripal_feature_requirements($phase) {
$requirements = array();
if ($phase == 'install') {
// make sure chado is installed
if (!$GLOBALS["chado_is_installed"]) {
$requirements['tripal_feature'] = array(
'title' => "t ripal_feature",
'value' => "ERROR: Chado must be installed before this module can be enabled",
'severity' => REQUIREMENT_ERROR,
);
}
}
return $requirements;
}