-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '263731-webform-demo' into test
- Loading branch information
Showing
8 changed files
with
195 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
_core: | ||
default_config_hash: 9bVDfWSa_In6VzTXmy04jJ_3ZQobihKjO9isuuUCPaw | ||
protect_all_forms: false | ||
unprotected_forms: | ||
- user_login_form | ||
- search_form | ||
- search_block_form | ||
- views_exposed_form | ||
- honeypot_settings_form | ||
log: false | ||
element_name: url | ||
time_limit: 5 | ||
expire: 300 | ||
form_settings: | ||
user_register_form: false | ||
user_pass: false | ||
contact_message_feedback_form: false | ||
contact_message_personal_form: false | ||
node_article_form: false | ||
node_basic_page_form: false | ||
node_deliverables_form: false | ||
node_events_form: false | ||
node_institution_form: false | ||
node_laboratory_form: false | ||
node_opportunity_form: false | ||
node_page_form: false | ||
node_project_form: false | ||
node_publications_form: false | ||
node_thematic_areas_form: false | ||
comment_comment_form: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
uuid: 6eff7ca0-34ae-443e-909c-5fd64d080a4e | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- honeypot | ||
_core: | ||
default_config_hash: A_dlRbNEX9_hOqUkQ5m4AskEmat7VEA8qvFt7tVeufQ | ||
id: honeypot | ||
label: Honeypot | ||
module: honeypot | ||
routes: | ||
- | ||
route_name: honeypot.config | ||
tips: | ||
honeypot-configuration: | ||
id: honeypot-configuration | ||
plugin: text | ||
label: Honeypot | ||
weight: -10 | ||
body: "Congratulations on installing Honeypot on your site! With just a few clicks, you can have your site well-protected against automated spam bots.\r\n\r\nClick Next to be guided through this configuration page." | ||
position: top-start | ||
protect-all-forms: | ||
id: protect-all-forms | ||
plugin: text | ||
label: 'Protect all forms' | ||
weight: -9 | ||
selector: '#edit-protect-all-forms' | ||
body: "Protecting all the forms is the easiest way to quickly cut down on spam on your site, but doing this disables Drupal's caching for every page where a form is displayed.\r\n\r\nNote: If you have the honeypot time limit enabled, this option may cause issues with Drupal Commerce product forms or similarly-sparse forms that are able to be completed in a very short time." | ||
position: bottom-start | ||
log-blocked-form-submissions: | ||
id: log-blocked-form-submissions | ||
plugin: text | ||
label: 'Log blocked form submissions' | ||
weight: -8 | ||
selector: '#edit-log' | ||
body: 'Check this box to log every form submission using watchdog. If you have Database Logging enabled, you can view these log entries in the Recent log messages page under Reports.' | ||
position: bottom-start | ||
honeypot-element-name: | ||
id: honeypot-element-name | ||
plugin: text | ||
label: 'Honeypot Element Name' | ||
weight: -7 | ||
selector: '#edit-element-name' | ||
body: "Spam bots typically fill out any field they believe will help get links back to their site, so tempting them with a field named something like 'url', 'homepage', or 'link' makes it hard for them to resist filling in the field—and easy to catch them in the trap and reject their submissions!" | ||
position: top-start | ||
honeypot-time-limit: | ||
id: honeypot-time-limit | ||
plugin: text | ||
label: 'Honeypot Time Limit' | ||
weight: -6 | ||
selector: '#edit-time-limit' | ||
body: "If you enter a positive value, Honeypot will require that all protected forms take at least that many seconds long to fill out. Most forms take at least 5-10 seconds to complete (if you're a human), so setting this to a value < 5 will help protect against spam bots. Set to 0 to disable." | ||
position: top-start | ||
honeypot-expire: | ||
id: honeypot-expire | ||
plugin: text | ||
label: 'Honeypot Expire' | ||
weight: -5 | ||
selector: '#edit-expire' | ||
body: "If you enter a positive value, Honeypot will require that all protected forms take at least that many seconds long to fill out. Most forms take at least 5-10 seconds to complete (if you're a human), so setting this to a value < 5 will help protect against spam bots. Set to 0 to disable." | ||
position: top-start | ||
honeypot-form-specific-settings: | ||
id: honeypot-form-specific-settings | ||
plugin: text | ||
label: 'Honeypot form-specific settings' | ||
weight: -4 | ||
selector: '#edit-form-settings' | ||
body: 'If you would like to choose particular forms to be protected by Honeypot, check the forms you wish to protect in this section. Most common types of forms are available for protection.' | ||
position: top-start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
uuid: 3a6a4488-31d8-48db-b265-ce30295f671f | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- honeypot | ||
title: 'Default cron handler' | ||
id: honeypot_cron | ||
weight: 0 | ||
module: honeypot | ||
callback: honeypot_cron | ||
scheduler: | ||
id: simple | ||
launcher: | ||
id: serial | ||
logger: | ||
id: database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,7 @@ | |
|
||
.form-actions { | ||
margin-top: 30px; | ||
margin-bottom: 60px; | ||
|
||
.btn-primary { | ||
font-weight: 600; | ||
|