As stated in MCAPI:

array GROUPINGS Set Interest Groups by Grouping. Each element in this array should be an array containing the "groups" parameter which contains a comma delimited list of Interest Groups to add. Commas in Interest Group names should be escaped with a backslash. ie, "," => "\," and either an "id" or "name" parameter to specify the Grouping - get from listInterestGroupings()

This hasn't been done yet. If you use comma's in interest group names they will get split up. I included a patch that fixes this behaviour.

Comments

levelos’s picture

Status: Needs work » Fixed

Thanks, included in 7.x-2.4.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jtolj’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new718 bytes

The above patch doesn't address the hook_user_insert() case, so commas in interest groups still aren't working from the user signup form. Patch is attached. Thanks!

gcb’s picture

Status: Needs review » Fixed

thanks jtolj. I fixed this by abstracting this function away rather than duplicating the calls in two places. Fixed in 2.x dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.