Below is a hook from the LinkedIn Integration module.
Then I have a hook form alter in my module and it's all setup and ready to go to call a submit handler.
When the user goes to authorize LinkedIn, and come back, I want to fire some my code.
The question is I don't know what states or values are after it comes back. I tried this
function my_module_form_link($form,$form_state, $uid)
{
dpm($form_state['values']);
}
but it did not return anything
function linkedin_user_enable_form($form, $form_state, $uid) {
$form = array();
$form['#user'] = $uid;
$form['#action'] = url('linkedin/token/' . $uid);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Go to LinkedIn'),
'#suffix' => '<p class="description">' . t('You will be taken to the LinkedIn website in order to complete the process.') . '</p>',
);
return $form;
}