- Merge request !913202250: Optional pattern for adding captcha administration links β (Open) created by deulenko
- Open on Drupal.org βCore: 10.2.1 + Environment: PHP 8.2 & MySQL 8last update
8 months ago Waiting for branch to pass
This module allows you to "Add CAPTCHA administration links to forms" which is super helpful, but sometimes overly broad. It would be great to have an optional field to provide one or more patterns that could be used to match the specific areas you want the links to appear.
When the "Add CAPTCHA administration links to forms" option is enabled, have a textarea appear where patterns can be provided. If left blank it would preserve the current behaviour, but if any patterns are entered, then the code that adds the links will check these before adding the link on a specific form.
- Add the additional form element, and use the states API to make it dependent on administration_mode being checked
- Add code to the form alter that adds the link, to make the comparison if any patterns are provided
Likely need to update the schema
Needs work
2.0
Code
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.