[SOLVED][Drupal Organic Groups] How to check if a user is a member of an Organic Group?

February 27, 2013 - 12:47

A few Drupal users want to know how to check if a user is a member of an Organic Group via code. If you are facing the same question in your Drupal site with Drupal Organic Groups and would like to know the solution then read on to find out more.

Here is the solution.

Use the following code segment to know if a user is a member of an organic group.

og_is_member()

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.

Get Drupal updates straight to your inbox

To prevent automated spam submissions leave this field empty.

Post your comments / questions