function tripal_pub_requirements
2.x tripal_pub.install | tripal_pub_requirements($phase) |
3.x tripal_pub.install | tripal_pub_requirements($phase) |
1.x tripal_pub.install | tripal_pub_requirements($phase) |
Implementation of hook_requirements().
File
- tripal_pub/
tripal_pub.install, line 95 - This file contains all the functions which describe and implement drupal database tables needed by this module. This module was developed by Chad N.A. Krilow and Lacey-Anne Sanderson, University of Saskatchewan.
Code
function tripal_pub_requirements($phase) {
$requirements = array();
if ($phase == 'install') {
// make sure chado is installed
if (!tripal_core_is_chado_installed()) {
$requirements['tripal_pub'] = array(
'title' => "tripal_pub",
'value' => "ERROR: Chado most be installed before this module can be enabled",
'severity' => REQUIREMENT_ERROR,
);
}
}
return $requirements;
}