Give the gift of Drupal. All merchandise is 50% off through 2016.
I have created a site where new users are required to create a new group. I'm working with the rules module and I want to create a condition where by if the current user has not yet created a group, they are redirected to a certain page.
So my question is, what php snippet would return either the number of groups created by the current user, or a true/false value based on whether the current user has created a group or not.