Skip to content
Snippets Groups Projects
Commit 430ecac2 authored by Jeff Geerling's avatar Jeff Geerling
Browse files

Issue #1232644 by geerlingguy: Use form states on admin form for better usability.

parent f52caf6a
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,12 @@ function honeypot_admin_form($form, &$form_state) {
'#description' => t("Check the boxes next to individual forms on which you'd like Honeypot protection enabled."),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#states' => array(
// Hide this fieldset when all forms are protected.
'invisible' => array(
'input[name="honeypot_protect_all_forms"]' => array('checked' => TRUE),
),
),
);
$form['enabled_forms']['honeypot_form_user_register_form'] = array(
'#type' => 'checkbox',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment