You are here

function webform_requirements in Webform 6.3

Same name and namespace in other branches
  1. 8.5 includes/webform.install.requirements.inc \webform_requirements()
  2. 7.4 webform.install \webform_requirements()
  3. 6.x includes/webform.install.requirements.inc \webform_requirements()

Implements hook_requirements().

File

./webform.install, line 479
Webform module install/schema hooks.

Code

function webform_requirements($phase) {
  $requirements = array();
  $t = get_t();
  if (version_compare(VERSION, '6.16') < 0) {
    $requirements['webform_drupal_version'] = array(
      'title' => $t('Webform'),
      'value' => VERSION,
      'severity' => REQUIREMENT_ERROR,
      'description' => $t('Webform requires at least version @version of Drupal core.', array(
        '@version' => '6.16',
      )),
    );
  }
  return $requirements;
}