Closed (fixed)
Project:
Modal forms (with ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2011 at 08:13 UTC
Updated:
13 Apr 2014 at 00:58 UTC
Jump to comment: Most recent
Comments
Comment #1
michaelj commented+
Comment #2
ckngUnable to get the redirection to work, am using total control dashboard with redirection option after login.
The redirected page is loaded in an alert box.
Comment #3
jaykainthola commentedYou can use ctools_ajax_command_redirect() to redirect to other page.
Comment #4
areynolds commentedThanks for the hint @jaykainthola, for fellow gumshoes, my path to greatness was as follows:
Comment #5
jaykainthola commented@areynolds Kindly check below code. I have used ajax_register module in one of my project. This is the code from that module on user register submit function.
$redirect_url ="";
ctools_include('ajax');
$commands = array();
$commands[] = ctools_ajax_command_redirect($redirect_url);
return array('#type' => 'ajax', '#commands' => $commands);
Thanks,
Comment #6
frjo commentedComment #8
areikiera commentedThis can also be accomplished with Rules: also see: https://drupal.org/node/1873360
Comment #9
rajesh.vishwakarma commenteduse destination for registration/login link on tpl file. For registration use:
Comment #10
gjpino83 commentedHello guys,
Could someone please help me to know where to add the code from #4? this one:
Should I added to my template or create a custom module?
Thanks!