You are here

function security_review_run_store in Security Review 6

Same name and namespace in other branches
  1. 7 security_review.module \security_review_run_store()

Run the security review checklist and store the results.

File

./security_review.module, line 307
Site security review and reporting Drupal module.

Code

function security_review_run_store($checklist, $log = NULL) {

  // Allow callers like a drush command to decide not to log.
  if (is_null($log)) {
    $log = variable_get('security_review_log', TRUE);
  }

  // Perform the actual review.
  $results = _security_review_run($checklist, $log);

  // Store results and return.
  return security_review_store_results($results);
}