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(&$edit, $account, $category) {
db_insert('test')
->fields(array(
'accountid' => $account->uid,
))
->execute();
}
here compass-my theme name Please help me...