blkfin Posted March 11, 2010 Share Posted March 11, 2010 Greetings....This is not working...any ideas? it echos -1 -2 -3 -4 but no $vars Thanks Jim function create_storm_account($vars) { $accountid = ($vars['userid']); $firstname = $vars['firstname']; $lastname = $vars['lastname']; $email = $vars['email']; echo $accountid."-1<br />"; echo $lastname."-2<br />"; echo $firstname."-3<br />"; echo $email."-4<br />"; } add_hook("AfterModuleCreate",1,"create_storm_account",""); 0 Quote Link to comment Share on other sites More sharing options...
blkfin Posted March 12, 2010 Author Share Posted March 12, 2010 here is the fix , for anyone who needs it. function create_storm_account($vars) { $userid = $vars['params']['clientsdetails']['userid']; $firstname = $vars['params']['clientsdetails']['firstname']; $lastname = $vars['params']['clientsdetails']['lastname']; $email = $vars['params']['clientsdetails']['email']; echo $userid."-1<br />"; echo $lastname."-2<br />"; echo $firstname."-3<br />"; echo $email."-4<br />"; } add_hook("AfterModuleCreate",1,"create_storm_account;); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.