In a theme or other custom module, sometimes, we need to know user's groups msg, a query to database for sure works like,
SELECT group_membership.gid AS group_membership_gid
FROM
{group_membership} group_membership
WHERE (( (group_membership.uid = '123') ))

But it may not be best practice for performance.

Is there a way we can call group existing msg which Group module provided without the query.

Comments

csh created an issue. See original summary.

soul88’s picture

Status: Active » Closed (outdated)

We thank everyone for their collaboration on this issue, but as the D7 version is no longer supported, we will now close all D7 issues to keep the issue queue a bit tidier. This information won't go anywhere, it just won't show up on the list of open issues anymore.

Please see: https://www.drupal.org/project/group/issues/3163655 and https://www.drupal.org/project/group/issues/3203863#comment-14100281 for more details.