Could someone please help me in writing a PHP snippet that will determine whether a piece of content exists in a group? Not in a specific group, just a group in general.

For example, if page X is part of a group display this link, but if page X is not in a group do not display the link.

Thank you!!

Comments

koneru.46@gmail.com’s picture

By saying -- ....determine whether a piece of content exists in a group?

do you mean -- " how to dispaly a link if the page is of a particular content-type ? "

uw07’s picture

Not of a particular content type, but whether or not that node belongs to an Organic Group.

uw07’s picture

Does anyone have a PHP snippet that could help with this? I only need to return TRUE whether a node is posted into an Organic Group or FALSE if it is not.

uw07’s picture

I'm bumping this because I still need help. Does anyone have a PHP snippet that will come back with a Yes/No whether a node is posted into an Organic Group.
thanks