You are here

function answers_requirements in Answers 6.2

Same name and namespace in other branches
  1. 6 answers.install \answers_requirements()
  2. 7.4 answers.install \answers_requirements()
  3. 7.3 answers.install \answers_requirements()

Implements hook_requirements().

Checks that new depedency nodereference count is installed.

File

./answers.install, line 24

Code

function answers_requirements($phase) {
  $requirements = array();
  if ($phase == 'runtime' && !module_exists('nodereference_count')) {
    $t = get_t();
    $requirements['answers_nodereference_count'] = array(
      'title' => $t('Answers Module Dependencies'),
      'value' => $t('Module not found: The Answers module requires that the NodeReference Count module be installed'),
      'severity' => REQUIREMENT_ERROR,
    );
  }
  return $requirements;
}