Problem/Motivation
When using token replacement in CKEditor to display the cookies list and cookie consent button on a page, the following message is displayed "This block is broken or missing. You may be missing content or you might need to enable the original module." this is because the block name given to createInstance does not match the block to be created in the cookiepro_plus_tokens function.
Steps to reproduce
- Allow token replacement in CKEditor.
- Enable cookiePro tokens.
- Add new content with a cookie pro token (eg [cookiepro_plus:cookie_list]).
- The above-mentioned message is displayed instead of the desired content.
Proposed resolution
Change the name from cookie_pro to cookie_pro_plus in the cookiepro_plus.module file cookiepro_plus_tokens function.
Remaining tasks
Merge the code.
User interface changes
None
API changes
None
Data model changes
None
Issue fork cookiepro_plus-3326546
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
dtfabio commentedComment #4
dtfabio commentedComment #5
andreasderijckeComment #7
andreasderijckeNice find. Completely missed this one in renaming of the module.