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) |
Implementation of hook_requirements().
File
- tripal_feature/
tripal_feature.install, line 172 - @todo Add file header description
Code
function tripal_feature_requirements($phase) {
$requirements = array();
if ($phase == 'install') {
// make sure chado is installed
if (!tripal_core_is_chado_installed()) {
$requirements['tripal_feature'] = array(
'title' => "tripal_feature",
'value' => "ERROR: Chado most be installed before this module can be enabled",
'severity' => REQUIREMENT_ERROR,
);
}
}
return $requirements;
}