function tripal_cv_requirements
2.x tripal_cv.install | tripal_cv_requirements($phase) |
3.x tripal_cv.install | tripal_cv_requirements($phase) |
1.x tripal_cv.install | tripal_cv_requirements($phase) |
Implementation of hook_requirements().
Related topics
File
- legacy/
tripal_cv/ tripal_cv.install, line 30 - Contains functions executed only on install/uninstall of this module
Code
function tripal_cv_requirements($phase) {
$requirements = array();
if ($phase == 'install') {
// make sure chado is installed
if (!$GLOBALS["chado_is_installed"]) {
$requirements['tripal_cv'] = array(
'title' => "tripal_cv",
'value' => "ERROR: Chado must be installed before this module can be enabled",
'severity' => REQUIREMENT_ERROR,
);
}
}
return $requirements;
}