function security_review_run_store in Security Review 7
Same name and namespace in other branches
- 6 security_review.module \security_review_run_store()
Run the security review checklist and store the results.
File
- ./
security_review.module, line 145 - Site security review and reporting Drupal module.
Code
function security_review_run_store($checklist, $log = NULL) {
// Allow callers, like our drush command, to decide not to log.
if (is_null($log)) {
$log = variable_get('security_review_log', TRUE);
}
// Call our private function to perform the actual review.
$results = _security_review_run($checklist, $log);
variable_set('security_review_last_run', time());
// Store results and return.
return security_review_store_results($results);
}