1

I want to redirect the page after user login. for login i have using modal form. I already use the Login designation module but its not working. Any idea how do this?

closed as unclear what you're asking by Shawn Conn, Yusef, Adrian Cid Almaguer, kiamlaluno May 31 '16 at 5:27

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Hi! This question feels much too broad, and questions that ask to to implement functionality or recommend a module are discouraged. If a module is not working, you could try searching the module's issue queue or reading more of its documentation. It does not look like the modal forms module supports the destination parameter of login destination, drupal.org/node/2486951. – mradcliffe May 30 '16 at 12:12
  • If you're on Drupal 7, you could use Rules – No Sssweat May 31 '16 at 4:48
0

Add this in your custom module. Hope it works.

/**
 * Implements hook_user_login().
 */
function my_module_user_login(&$edit, $account) {
ctools_add_js('ajax-responder');
$commands = array();
$commands[] = ctools_ajax_command_redirect('YOUR-REDIRECT-PAGE');
print ajax_render($commands);
exit;
}

Not the answer you're looking for? Browse other questions tagged or ask your own question.