You are here

function unused_modules_drush_command_alter in Unused Modules 8

Same name and namespace in other branches
  1. 7 unused_modules.drush.inc \unused_modules_drush_command_alter()

Implements hook_drush_command_alter().

File

./unused_modules.drush.inc, line 191
Unused Modules Drush support.

Code

function unused_modules_drush_command_alter(&$command) {
  if ($command['command'] == 'audit_extensions') {
    $command['checks'][] = [
      'name' => 'Unused',
      'location' => __DIR__ . '/unused_modules.site_audit.inc',
    ];
  }
}