EscalateSEO Posted February 8, 2015 Share Posted February 8, 2015 Here's what I currently have: <?php function hook_api_suspend($vars) { $table = "apis_user_profiles"; $update = array("status"=>"0"); $where = array('user_id'=>"342330"); update_query($table,$update,$where); } add_hook('AfterModuleSuspend', 1, 'hook_api_suspend'); ?> On this line you can see that I have hardcoded a user_id: $where = array('user_id'=>"342330"); What do I need to change this line to for it to use whatever the current user's ID number is? 0 Quote Link to comment Share on other sites More sharing options...
srpurdy Posted February 8, 2015 Share Posted February 8, 2015 $_SESSION['uid'] 0 Quote Link to comment Share on other sites More sharing options...
mbit Posted February 9, 2015 Share Posted February 9, 2015 You mean the ID of the user the suspended service belongs to, i guess... $where = array( 'user_id' => $vars['params']['userid'] ); 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.