You are here

function drush_site_audit_audit_extensions_validate in Site Audit 7

Same name and namespace in other branches
  1. 8.2 site_audit.drush.inc \drush_site_audit_audit_extensions_validate()

Audit extensions validation.

File

./site_audit.drush.inc, line 577
Drupal site auditing commands.

Code

function drush_site_audit_audit_extensions_validate() {
  $extension_count = drush_get_option('extension_count');
  if ($extension_count) {
    if ((int) $extension_count != $extension_count || $extension_count < 1) {
      return drush_set_error(dt('The extension count must be a whole number above zero.'));
    }
  }
  return site_audit_version_check();
}