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