Drupal: Redirect user after login

This is just a two lines of CodeLet which allows you to redirect your users after they log in to your site. This not complex and super quick

CodeLet: 

/**
* Implementation of hook_user_login
* @param unknown $edit
* @param unknown $account
* @author DrupalD
*/
function myformchanges_user_login(&$edit, $account) {
global $user;
$_GET['destination'] = 'user/'. $user->uid .'/dashboard';
}

By DrupalD on Thu, 31/07/2014 - 4:50pm

Add comment

Log in or register to post comments
QR code for this page URL This page URL
Feedback