function tripal_views_requirements

2.x tripal_views.install tripal_views_requirements($phase)
1.x tripal_views.install tripal_views_requirements($phase)

Implementation of hook_requirements().

Related topics

File

tripal_views/tripal_views.install, line 12
Functions related to installing/uninstalling this module

Code

function tripal_views_requirements($phase) {
  $requirements = array();
  if ($phase == 'install') {
    // make sure chado is installed
    if (!$GLOBALS["chado_is_installed"]) {
      $requirements['tripal_views'] = array(
        'title' => "tripal_views",
        'value' => "ERROR: Chado must be installed before this module can be enabled",
        'severity' => REQUIREMENT_ERROR,
      );
    }
  }
  return $requirements;
}