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().

Related topics

File

tripal_stock/tripal_stock.install, line 29
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 (!$GLOBALS["chado_is_installed"]) {
      $requirements['tripal_stock'] = array(
        'title' => "tripal_stock",
        'value' => "ERROR: Chado must be installed before this module can be enabled",
        'severity' => REQUIREMENT_ERROR,
      );
    }
  }
  return $requirements;
}