function site_audit_version_check in Site Audit 8.2
Same name and namespace in other branches
- 7 site_audit.drush.inc \site_audit_version_check()
Check the Drupal major version.
Return value
bool FALSE if unsupported.
2 calls to site_audit_version_check()
- drush_site_audit_audit_security_validate in ./
site_audit.drush.inc - Audit security validation.
- drush_site_audit_generic_callback_validate in ./
site_audit.drush.inc - Generic validator for all commands.
File
- ./
site_audit.drush.inc, line 455 - Drupal site auditing commands.
Code
function site_audit_version_check() {
$drupal_major_version = drush_drupal_major_version();
if ($drupal_major_version < 8) {
return drush_set_error('SITE_AUDIT_DRUPAL_8_ONLY', dt('Site Audit 2.x only supports Drupal 8.'));
}
return TRUE;
}