Problem/Motivation
Release 2.0.0 stable and support D11.
Steps to reproduce
Proposed resolution
-Apply the automated D11 patch
-Verify code works on D11
-Maybe include the various patches for the open issues (that are open for a long time)
-Create a new stable 2.0.0 release.
Remaining tasks
-Live happy ever after.
User interface changes
API changes
Data model changes
Issue fork copyprevention-3530553
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sirclickalot@Maintainers
This module is a must on educational sites where we don't want students using copy/paste.
Would one of you please be kind enough to apply...
https://www.drupal.org/files/issues/2024-03-17/copyprevention.2.0.0-beta...
So then we can all carry on using this very useful module.
Thank you
Comment #5
wallexk1 commentedThis merge request resolves issue copyprevention-3530553 by updating the module’s core_version_requirement.
Key points:
Please review and merge so the module declares support for Drupal 11 in the upcoming release.
Comment #6
sirclickalotGiven the 2000+ user base for this great little module coupled with its reported 'D11 readiness' from #5, may I appeal to the maintainers to get a full stable D11-compatible release.
Go on, give us a Christmas present!
Comment #8
kensae commentedComment #9
neslee canil pintoDrupal 11 release - https://www.drupal.org/project/copyprevention/releases/2.0.0
Comment #11
sirclickalotHi, and thankyou for the stable 2.00 release, much appreciated.
There is a minor issue which is brought about by the extra strictness in Drupal 11.3.2 onwards I believe.
After installing fresh 2.00, I see...
Thanks
Comment #12
willids commentedHave put this on our test site before putting it on our live site (both exactly the same)
Getting
The website encountered an unexpected error. Try again later.
TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (line 40 of modules/contrib/copyprevention/copyprevention.module).
This is the code
if (!_copyprevention_is_enabled()) {
return;
}
$body_settings = array_filter(\Drupal::configFactory()->getEditable('copyprevention.settings')->get('copyprevention_body'));
foreach ($body_settings as $value) {
$vars['attributes']['on' . $value] = 'return false';
}
}
/**
* Implements hook_page_attachments().
*/
function copyprevention_page_attachments(&$page) {
global $base_url;