Pour toutes questions sur nos formations Drupal, n'hésitez pas à nous contacter.
This module controls where users go after logging in with the following options:
<?php
return array('path' => 'node/add/video', 'query' => 'param1=100¶m2=200');
?>PHP snippet's power is that you can allow conditions (redirect based on uid, role, other logic)
See below for examples.
---------------
You can also configure from which pages redirection is applied. To achieve this you can specify either a list of URLs, or a PHP snippet to build this list dynamically. There is a checkbox that makes this filter always perform redirection. You can redirect the user to various pages depending on which pages they are logging from.
There are known and unresolved conflicts with some modules due to the Login Destinations use of drupal_goto() that causes hooks in some modules to not get called.
Modules known to conflict with Login Destination:
Content Profile: #761254: not working with content profile module ?
MailChimp: #685352: Mailing list registration not working for registered users
The plan is to support the Login Destination module in the 6 branch and merge it into LoginToboggan when the time for the 7 branch comes.
For more info ask rsvelko from the team of Segments.at - your drupal partner.
The 5.x branch is unsupported currently by rsvelko and so someone to do the backport from 6 to 5 is wanted.
-------------
$_SESSION['login_page'] was added and stores the page you were before clicking login form button. You can use it to determine the page you logged from instead of $_GET['q'] because $_GET['q'] always equals to 'login_redirect'.
-------------------------------------------------------------------
- see here for a brief intro article about the module: - Login Destination Module Preview (may be outdated with the new 6.x-2.6 release)