admin_apply_draft_changes_form

4.x admin.module admin_apply_draft_changes_form()

This form lets the user apply draft changes (if they can supply the passcode)

File

modules/admin/admin.module, line 895
The administrative configurations for FlightPath.

Code

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

  $form["mark" . $m++] = array(
    "type" => "markup",
    "value" => t("You can use this form to apply your draft changes to the production database, making changes
                  to degrees, courses, and groups visible to all users of the system."),
  );

  $form["passcode"] = array(
    "type" => "password",
    "label" => t("For added security, you must enter the Apply Draft Changes password:"),
    "required" => TRUE,
    "description" => t("This is a password set up in FlightPath's settings, to provide an extra layer
                        of security for this powerful action."),
  );

  $form["submit"] = array(
    "type" => "submit",
    "value" => t("Submit"),
    "description" => t("This action may take several seconds to complete!  Click only ONCE!"),
    "prefix" => "<hr>",
  );



  return $form;
}