Redirection in Drupal's _submit() functions.I am working on a website which uses the contrib module "mysite". The client wants me to modify the landing page after you change some config. The right way of doing that would be to use hook_form_alter() and change the redirect value: $form['#redirect'] = 'newpath'; However, this was not working for me. I found out this was because the author of the module mysite was using drupal_goto() inside the _submit functions. This is not the recommended way of specifying where you want the page to go to after your form was submitted. You have to return the path. For more details, see the issue I created:
|
SearchDrupal ContributionsMake a Payment to Christian Roy |
Post new comment