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