You are here

function _coder_review_set_form_modules in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/coder_review.drush.inc \_coder_review_set_form_modules()

Determines which Coder modules are active for this run.

@todo Add function header comment. Still needed?

Parameters

array $settings: An associative array of Coder modules, passed by reference.

1 call to _coder_review_set_form_modules()
drush_coder_review in coder_review/coder_review.drush.inc
Performs the actual review for drush.

File

coder_review/coder_review.drush.inc, line 81
Command line utility support for Coder_review module.

Code

function _coder_review_set_form_modules(array &$settings) {
  if (isset($settings['coder_modules'])) {
    foreach ($settings['coder_modules'] as $key => $value) {
      if ($value == 1) {
        $settings['coder_modules-' . $key] = 1;
      }
    }
    unset($settings['coder_modules']);
  }
}