Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
honeypot-3342625
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
honeypot-3342625
Commits
430ecac2
Commit
430ecac2
authored
13 years ago
by
Jeff Geerling
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
honeypot.admin.inc
+6
-0
6 additions, 0 deletions
honeypot.admin.inc
with
6 additions
and
0 deletions
honeypot.admin.inc
+
6
−
0
View file @
430ecac2
...
...
@@ -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'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment