Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The ability to disable the javascript for anonymous users so they cannot modify the content of a specific homebox. Odd request I know. Patch in next post.
Comment | File | Size | Author |
---|---|---|---|
#3 | homebox-removejsforanonusers-1473316-3.patch | 3.75 KB | mikebell_ |
#1 | homebox-removejsforanonusers-1473316-1.patch | 6.52 KB | mikebell_ |
Comments
Comment #1
mikebell_ CreditAttribution: mikebell_ commentedPatch!
Comment #2
drummAmazingly, this patch applies nearly cleanly, except for the two whitespace-related chunks.
There isn't a way to store a customized homebox layout at all for anonymous users. Rather than being a setting, I think we should always disable it.
Comment #3
mikebell_ CreditAttribution: mikebell_ as a volunteer commentedWow this took a bit of remembering.
I've attached a patch that checks to see if the user is logged in and then attaches the correct js and css.
Comment #4
mikebell_ CreditAttribution: mikebell_ as a volunteer commentedsetting status
Comment #5
drummCommitted with fixing some merge conflicts and pulling the common code out of the if statement.