You are here

function drush_site_audit_generic_callback in Site Audit 8.2

Generic callback for all commands.

1 string reference to 'drush_site_audit_generic_callback'
site_audit_drush_command in ./site_audit.drush.inc
Implements hook_drush_command().

File

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

Code

function drush_site_audit_generic_callback() {
  $command = drush_get_context('command');
  $command_parts = explode('-', $command['command']);
  $report_class = 'SiteAuditReport' . implode('', array_map('ucfirst', array_slice($command_parts, 1)));
  $report = new $report_class();
  $report
    ->render();
}