Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
and commented out the user message in ob_subscribe function:
function og_subscribe($node, $uid = NULL) {
global $user;
if (is_null($uid)) {
if ($user->uid) {
$account = $user;
}
// else {
// drupal_set_message(t('In order to join this group, you must login or register a new account. After you have successfully done so, you will need to request membership again.'));
// drupal_goto('user');
// }
}
else {
$account = user_load(array('uid' => $uid));
}
if ($node->og_selective >= OG_INVITE_ONLY || $node->status == 0 || !og_is_group_type($node->type)) {
drupal_access_denied();
exit();
}
Comments
Comment #1
sapark commentedHere's how I got it to work. I changed the og_subscribe_link function in og.module to make the Join link for anonymous users go to the user login:
and commented out the user message in ob_subscribe function:
Comment #2
Equ commentedAre there any different ways to do that? I also need this...
Comment #3
jackbravo commentedis there a way to do this by not modifying the og module?
like with a theme function or an override or something?
Comment #4
Grayside commentedYou can use the String Overrides module, or the locale variable in the settings.php file that it uses to do string conversions.
Since it has been several years since the last post, and it is a general support question, marking this as closed.