well, i'm doing a invitation response system for OG, when the user recieve the invitation, this go with a url to go to the site, well if user have a user account in my site, i can send to the login form with the parameter "&destination=", i can do this for register form too; but i need when the user is registering for joining a group, after the register go to og/subscribe/$gid page, but for this i need send the warning message from successfully register with the URL user/register&destination=node/$gid
how can i do this happens only when the user registering for join a group?
this might be helpful, it has been an issue for a long time:
----- Original Message ----- From: "Aldo Martinez Selleras" aldo@caonao.cu To: support@drupal.org Sent: Friday, October 30, 2009 9:44 AM Subject: [support] modify the og invitation process!
well, i'm doing a invitation response system for OG, when the user recieve the invitation, this go with a url to go to the site, well if user have a user account in my site, i can send to the login form with the parameter "&destination=", i can do this for register form too; but i need when the user is registering for joining a group, after the register go to og/subscribe/$gid page, but for this i need send the warning message from successfully register with the URL user/register&destination=node/$gid
how can i do this happens only when the user registering for join a group?
[ Drupal support list | http://lists.drupal.org/ ]
this is a perfect solution, but i can't modify the og.module.
really, i have a copy of some functions of the og subscribe process, because i did a lot changes only for some kinds of groups, well, i need to modify the variables in user/register form and add the "&destination=" parameter.
thks a lot.
Aldo Martinez Selleras ha scritto:
this is a perfect solution, but i can't modify the og.module.
really, i have a copy of some functions of the og subscribe process, because i did a lot changes only for some kinds of groups, well, i need to modify the variables in user/register form and add the "&destination=" parameter.
Why don't write a module that change "destination" via an hook_form_alter() ?
M.
how can i modify the user_register_submit with the form_alter() ??
how can i modify from my module the variables in _user_mail_text() function ????