Currently, if you use the "Is member an admin in a group" field on a node view, it appears to check if the node author is an admin of the group node, which is always the case and rather awkward.
The attached patch uses the currently logged in user on a node view, so you can make a view of group nodes with "admin" next to the groups you're an admin of.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 866746_og_views_is_admin_2.patch | 1.73 KB | msonnabaum |
| #1 | 866746_og_views_is_admin.patch | 1.51 KB | msonnabaum |
| og_views_is_admin.patch | 1.77 KB | msonnabaum |
Comments
Comment #1
msonnabaum commentedForgot the break in the first patch, which broke user views. New patch attached.
Comment #2
amitaibuLooks reasonable.
Use !empty();
You have extra space in the string.
Also, please add some docs that explain the reason for the switch().
Comment #3
msonnabaum commentedUpdated patch as per your requests.
Comment #4
amitaibuCommitted, thanks.