Closed (fixed)
Project:
Organic Groups
Version:
7.x-2.x-dev
Component:
og.module
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
1 Feb 2013 at 22:51 UTC
Updated:
12 Feb 2018 at 11:17 UTC
Jump to comment: Most recent
Comments
Comment #1
amitaibuog_is_member()Comment #2
WEBstar commentedYes...
But where do i put this?
Comment #3
amitaibuFeel free to look at the tests that show how to use the API.
Comment #4
WEBstar commentedWhere can i find them?
Thank you!
Comment #5
WEBstar commentedI tried this one:
But not working... I get an error: Illegal offset type in og_get_entity_groups() (line 1986 ... )
Comment #6
balagan commentedI don't know what you want to show them, but maybe you can try to use the views module for this.
Comment #7
WEBstar commentedsimple text..
Comment #9
alienzed commentedI got that too... ever figure this out?
Comment #10
simon_j_nichols commentedamitaibu is referring to the og.test file in the module directory. Great source of api calls
og_is_member documentation can be found here
http://www.drupalcontrib.org/api/drupal/contributions%21og%21og.module/f...
Very quick look at your example I would suggest trying og_is_member('node', '19', 'user', $account))
Comment #11
Bhanuji commentedwe have a function.
og_is_member('node', $gid, 'user', $user)Return TRUE if a user belongs to a group.
For reference please check og_is_member()
Comment #12
rahulmon johnsonHow it check in group module???