function admin_apply_draft_changes_form
Search API
7.x admin.module | admin_apply_draft_changes_form() |
6.x admin.module | admin_apply_draft_changes_form() |
4.x admin.module | admin_apply_draft_changes_form() |
5.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 1050 - The administrative configurations for FlightPath.
Code
function admin_apply_draft_changes_form() {
$form = array();
$m = 0;
$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 System Settings, to provide an extra layer
of security for this powerful action."),
);
$form ["submit"] = array(
"type" => "submit",
"value" => t("Submit"),
"spinner" => TRUE,
"description" => t("Note: This action may take several seconds to complete. Do not close this tab or refresh the browser."),
"prefix" => "<hr>",
);
return $form;
}