Closed (duplicate)
Project:
Twitter
Version:
7.x-3.3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2013 at 23:15 UTC
Updated:
29 Jan 2013 at 20:29 UTC
Drupal all ready contains a function to redirect the user after login in login.module. This should be updated for version 3.x and 5.x accordingly.
The API is here:
http://api.drupal.org/api/drupal/modules%21user%21user.module/function/u...
Code:
function user_login_destination() {
$destination = drupal_get_destination();
if ($destination['destination'] == 'user/login') {
$destination['destination'] = 'user';
}
return $destination;
}
Comments
Comment #1
13rac1 commentedEffective duplicate of #1283454: Twitter sign-in should work with Login Destination module