function system_popup_report_contact_form

6.x system.module system_popup_report_contact_form()
4.x system.module system_popup_report_contact_form()
5.x system.module system_popup_report_contact_form()

This is the form which lets users send an email to the FlightPath production team,

File

modules/system/system.module, line 631

Code

function system_popup_report_contact_form() {
  $form = array();

  fp_set_title("");

  $form ["mark" . $m++] = array(
    "value" => fp_render_curved_line(t("Contact the FlightPath Production Team")),
  );

  if (!user_has_permission("access_logged_in_content")) {
    $form ["mark" . $m++] = array(
      "value" => t("We're sorry, but for security reasons you may only access this form
                    if you are logged in to FlightPath."),
    );
    return $form;
  }

  $form ["mark" . $m++] = array(
    "value" => t("If you've noticed an error or have a suggestion, use this
                  form to contact the FlightPath Production Team."),
  );

  $form ["category"] = array(
    "type" => "select",
    "label" => t("Please select a category"),
    "options" => array(
      t("Advising") => t("Advising"),
      t("Degree plan") => t("Degree plan"),
      t("What If?") => t("What If?"),
      t("Searching") => t("Searching"),
      t("Comments") => t("Comments"),
      t("Other") => t("Other"),
    ),
  );

  $form ["comment"] = array(
    "type" => "textarea",
    "label" => t("Comment:"),
  );

  $form ["submit"] = array(
    "type" => "submit",
    "value" => t("Send email"),
  );

  $form ["#redirect"] = array("path" => "popup-contact-form/thank-you");
  return $form;
}