function drush_site_audit_audit_extensions_validate in Site Audit 8.2
Same name and namespace in other branches
- 7 site_audit.drush.inc \drush_site_audit_audit_extensions_validate()
Audit extensions validation.
File
- ./
site_audit.drush.inc, line 668 - 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 drush_site_audit_generic_callback_validate();
}