You are here

function _security_review_run in Security Review 6

Same name and namespace in other branches
  1. 7 security_review.inc \_security_review_run()

Private function run review and returns the full results.

2 calls to _security_review_run()
security_review_run in ./security_review.inc
Public function for running Security Review checklist and returning results.
security_review_run_store in ./security_review.module
Run the security review checklist and store the results.

File

./security_review.inc, line 46
Stand-alone security checks and review system.

Code

function _security_review_run($checklist, $log = FALSE) {
  $results = array();
  foreach ($checklist as $module => $checks) {
    foreach ($checks as $check_name => $arguments) {
      $check_result = _security_review_run_check($module, $check_name, $arguments, $log);
      if (!empty($check_result)) {
        $results[$module][$check_name] = $check_result;
      }
    }
  }
  return $results;
}