You are here

function security_review_drush_command_alter in Security Review 7

Implements hook_drush_command_alter().

File

./security_review.drush.inc, line 321
Drush commands for Security Review module.

Code

function security_review_drush_command_alter(&$command) {

  // Adds security_review checks to existing security report.
  if ($command['command'] == 'audit_security') {
    $security_review_checks = array(
      'FilePerms',
      'InputFormats',
      'Field',
      'ErrorReporting',
      'PrivateFiles',
      'UploadExtensions',
      'AdminPermissions',
      'ExecutablePhp',
      'BaseUrlSet',
      'TemporaryFiles',
    );
    foreach ($security_review_checks as $name) {
      $command['checks'][] = array(
        'name' => $name,
        'location' => __DIR__ . '/security_review.site_audit.inc',
      );
    }
  }
}