You are here

function security_review_run_form in Security Review 7

Same name and namespace in other branches
  1. 6 security_review.module \security_review_run_form()
1 string reference to 'security_review_run_form'
security_review_page in ./security_review.pages.inc
Page callback for run & review.

File

./security_review.pages.inc, line 71
security_review.pages.inc

Code

function security_review_run_form($form, &$form_state, $checks = NULL) {
  $form['run_form'] = array(
    '#type' => 'fieldset',
    '#title' => t('Run'),
    '#description' => t('Click the button below to run the security checklist and review the results.'),
    '#collapsible' => TRUE,
    '#collapsed' => empty($checks) ? FALSE : TRUE,
  );
  $form['run_form']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Run checklist'),
  );
  return $form;
}