You are here

function _security_review_run in Security Review 7

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

Private function the review and returns the full results.

3 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_full in ./security_review.module
Run the security review checklist and return the full 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;
}