function linkedin_user_settings in LinkedIn Integration 7
Same name and namespace in other branches
- 6 linkedin.pages.inc \linkedin_user_settings()
@todo Please document this function.
See also
1 string reference to 'linkedin_user_settings'
- linkedin_menu in ./
linkedin.module - @todo Please document this function.
File
- ./
linkedin.pages.inc, line 70
Code
function linkedin_user_settings($account) {
$output = '';
$check = linkedin_get_profile_fields($account->uid, array(
'first-name',
'last-name',
'public-profile-url',
), TRUE);
if (isset($check['error-code'])) {
$output .= t('You must first authorize LinkedIn integration to use related features.');
$form = drupal_get_form('linkedin_user_enable_form', $account->uid);
$output .= drupal_render($form);
}
else {
$output .= t('Your account is associated with @name !public_profile.', array(
'@name' => $check['first-name'] . ' ' . $check['last-name'],
'!public_profile' => l($check['public-profile-url'], $check['public-profile-url']),
));
$form = drupal_get_form('linkedin_user_settings_form', $account);
$output .= drupal_render($form);
}
return $output;
}