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.

Comments

_rohn’s picture

Hi.

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.

_rohn’s picture

Status: Active » Needs review

...changing status to "needs review" (I'm such a newbie I didn't realize I needed to do that )

micropat’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)