hook_user_insert not working I am new to drupal.
When user register into my website I need to get the users details and passed to a thirty for server .
I am trying the following hook,

function compass_preprocess_user_insert(&amp;$edit, $account, $category) {
  db_insert('test')
    -&gt;fields(array(
      'accountid' =&gt; $account-&gt;uid,
    ))
    -&gt;execute();
}


here compass-my theme name
Please help me...
hook_user_insert() can only be implemented in a module, not a theme. Themes are just for styling/marking up content that modules produce, they shouldn't contain advanced logic like that.

You'll need to add a custom module and implement the hook in there to continue.