Hi Kyle,

not everyone is going to want to have all subscribers set to receive all posts as they are posted, when they first install ogm on their site. I recommend updating the INSTALL.TXT to include instructions for changing the default from "email to "no email" before turning it on in drupal modules. I just had a quick poke around and was not able to immediately find where to do this so would appreciate guidance.

Cheers,

Tobias

Comments

tobias’s picture

To answer my question, I edited og_mailinglist_api.inc line 126 to change "email" to "no email". Not sure if this is the best way to do this but it appears to have worked.

From:

/*
 * @param int $gid Group id.
 * @param array $uids array of User IDs to add group subscriptions.
 */
function og_mailinglist_save_group_subscriptions($gid, $uids) {
  foreach ($uids as $uid) {
    db_query("INSERT INTO {og_mailinglist_subscription}
             VALUES (%d, %d, '%s')", $gid, $uid, variable_get('og_mailinglist_default_group_subscription_type', 'email'));
  }
}

to:

/*
 * @param int $gid Group id.
 * @param array $uids array of User IDs to add group subscriptions.
 */
function og_mailinglist_save_group_subscriptions($gid, $uids) {
  foreach ($uids as $uid) {
    db_query("INSERT INTO {og_mailinglist_subscription}
             VALUES (%d, %d, '%s')", $gid, $uid, variable_get('og_mailinglist_default_group_subscription_type', 'no email'));
  }
}
kyle_mathews’s picture

Status: Fixed » Closed (fixed)

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