We have a list which has a number of Interest Groups and we're hiding the name of the main list as its irrelevant to the user. However, when a user subscribes to one or more of the Interest Groups, the message they get is:

You have subscribed to List Name.

I think it'd be useful if the comma separated list of Interest Groups was appended to the end of the string, so the user can see which groups they've signed up for, for example:

You have subscribed to List Name: Interest Group 1, Interest Group 2, etc.

It only involves altering a couple of lines of code, changing:

line 848:

drupal_set_message(t('You have subscribed to %list.', array('%list' => $list->name)));

to:

$interests = ($merge_vars['INTERESTS']) ? ": ". str_replace(",", ", ", $merge_vars['INTERESTS']) : "";
drupal_set_message(t('You have subscribed to %list%interests', array('%list' => $list->name, '%interests' => $interests)));

I think it'd make the message more user-friendly.

Comments

levelos’s picture

Status: Active » Closed (won't fix)

I'm not really sure this would be relevant to many use cases, especially when the group names are not meaningful on their own. The string is wrapped in t() so you could change it in your case using string translation.