I have attached patch that includes a module that does this.

This will allow people to style forms and other items to not work until the cookies are allowed.

I have considered adding the javascript to test if cookies are allowed and run that after cookie control allows cookies but before setting the cookies tag.

This does not attach a hook if people are allowed to revoke cookies (which the module does not easily allow.)

CommentFileSizeAuthor
0001-Create-module-cookie_html.patch2.17 KBmicheas

Comments

budda’s picture

Status: Patch (to be ported) » Fixed

Thanks for the contribution! Added to the project.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.