function advise_toggle_draft_form
Search API
7.x advise.module | advise_toggle_draft_form() |
6.x advise.module | advise_toggle_draft_form() |
4.x advise.module | advise_toggle_draft_form() |
5.x advise.module | advise_toggle_draft_form() |
File
- modules/
advise/ advise.module, line 509
Code
function advise_toggle_draft_form() {
$form = array();
$form ["mark" . $m++] = array(
"value" => "<p>" . t("By turning Draft Mode on, you will be able
to view degree plans which are still in 'Draft' mode
in both the regular View tab, as well as the Blank Degrees module,
if enabled.") . "</p>",
);
$form ["draft"] = array(
"type" => "radios",
"label" => t("Enable Draft Mode?"),
"options" => array("yes" => t("Yes"), "no" => t("No")),
"value" => $_SESSION ["fp_draft_mode"],
);
$form ["submit"] = array(
"type" => "submit",
"value" => t("Submit"),
"prefix" => "<hr>",
);
$form ["#redirect"] = array(
"path" => "main",
"query" => "",
);
return $form;
}