function linkedin_user_settings in LinkedIn Integration 6
Same name and namespace in other branches
- 7 linkedin.pages.inc \linkedin_user_settings()
1 string reference to 'linkedin_user_settings'
File
- ./
linkedin.pages.inc, line 58
Code
function linkedin_user_settings($account) {
$output = '';
$check = linkedin_get_profile_fields($account->uid, array(
'first-name',
'last-name',
'public-profile-url',
), TRUE);
if ($check['error-code']) {
$output .= t('You must first authorize LinkedIn integration to use related features.');
$output .= drupal_get_form('linkedin_user_enable_form', $account->uid);
}
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']),
));
$output .= drupal_get_form('linkedin_user_settings_form', $account);
}
return $output;
}