$info) { if (!empty($method['group']) && $method['group'] == 'mail') { $mail_methods[] = $method; } } return $mail_methods; } /** * Update destinations when a user account is updated, created * * The destinations for that mail account will be assigned to the user */ function messaging_mail_update_user($account) { if ($account->status) { // Update mail for destinations of this user db_query("UPDATE {messaging_destination} SET address = '%s' WHERE uid = %d AND type = 'mail'", $account->mail, $account->uid); // Update uid for destinations with this mail db_query("UPDATE {messaging_destination} SET uid = %d WHERE uid = 0 AND type = 'mail' AND address = '%s'", $account->uid, $account->mail); } }