function tripal_stock_requirements
2.x tripal_stock.install | tripal_stock_requirements($phase) |
3.x tripal_stock.install | tripal_stock_requirements($phase) |
1.x tripal_stock.install | tripal_stock_requirements($phase) |
Implementation of hook_requirements().
File
- tripal_stock/
tripal_stock.install, line 78 - Install the tripal stock module including it's content type
Code
function tripal_stock_requirements($phase) {
$requirements = array();
if ($phase == 'install') {
// make sure chado is installed
if (!tripal_core_is_chado_installed()) {
$requirements['tripal_stock'] = array(
'title' => "tripal_stock",
'value' => "ERROR: Chado most be installed before this module can be enabled",
'severity' => REQUIREMENT_ERROR,
);
}
}
return $requirements;
}