function tripal_contact_requirements

2.x tripal_contact.install tripal_contact_requirements($phase)
3.x tripal_contact.install tripal_contact_requirements($phase)
1.x tripal_contact.install tripal_contact_requirements($phase)

Implementation of hook_requirements().

File

legacy/tripal_contact/tripal_contact.install, line 32
Handles install, uninstall, disable and enable functionality including database tables.

Code

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