function encrypt_submissions_config_form in Encrypt Submissions 7
This is our admin/config/encrypt-submissions form.
1 string reference to 'encrypt_submissions_config_form'
- encrypt_submissions_menu in ./
encrypt_submissions.module - Implementation of hook_menu
File
- ./
encrypt_submissions.module, line 118
Code
function encrypt_submissions_config_form() {
$form = array();
// Let the user know if they have installed the jcryption libraries correctly.
encrypt_submissions_check_library_files_exist();
$form["encrypt_submissions_visibility"] = array(
"#title" => t("Enable Encrypt Submissions for specific forms"),
"#type" => "radios",
"#options" => array(
"only_listed" => t("Only the listed forms"),
"all_except" => t("All except those listed"),
),
"#default_value" => variable_get("encrypt_submissions_visibility", "only_listed"),
"#description" => t("Be aware that this module will slow down the submission of forms. It is unadvised\n to enable the module on forms which require quick submission times."),
);
$form["encrypt_submissions_forms"] = array(
"#title" => t("List form_id's, one per line"),
"#type" => "textarea",
"#default_value" => variable_get("encrypt_submissions_forms", ""),
"#description" => t("Some common form id's:\n <br> Login: <b>user_login</b> and <b>user_login_block</b>\n <br> Registration: <b>user_register_form</b>\n <br><br>\n <b>Don't forget-- if you want to encrypt login or registration submissions</b>,\n you must give anonymous users the Access Encrypted Submissions privilege!\n "),
);
$form["encrypt_submissions_encrypt_msg"] = array(
"#title" => t("Encrypt message"),
"#type" => "textfield",
"#default_value" => variable_get("encrypt_submissions_encrypt_msg", "Encrypting..."),
"#description" => t("This is the message the user sees while the form is performing\n the encryption operation. Enter ") . "<b>none</b>" . t(" if you do not wish any\n message to appear."),
);
$form["mark1"] = array(
"#type" => "markup",
"#markup" => "<p><i>" . t("Please note that the jCryption libraries were NOT programmed by \n this module's maintainer. They were mostly programmed by \n Daniel Griesser, and comprise several other libraries by different\n authors. Please visit http://www.jcryption.org/about for a \n full list of credits.") . "</i></p>",
);
return system_settings_form($form);
}