Users on my site can submit stories. They are then using the addtoany button to create links to an article that nobody can access because it is not published through the proper workflow yet.
Desired result: Hidden for nodes that are unpublished.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | addtoany-hide_for_unpublished_content-991576.patch | 498 bytes | _rohn |
Comments
Comment #1
_rohn commentedHi.
I think I have a patch for this.
This is my very first ever attempt at submitting a patch (and I'm a beginning git user, and pretty rusty with my php) so I won't be surprised at all if I did something wrong. I'll gladly correct any mistake though! I hope I don't make more work for anyone in my attempt to help.
My patch is to cause the addtoany button to not show for unpublished content. A quick addition to the _addtoany_create_button function.
Comment #2
_rohn commented...changing status to "needs review" (I'm such a newbie I didn't realize I needed to do that )
Comment #3
micropat commented