function linkedin_profile_user_view in LinkedIn Integration 7
Implements hook_user_view().
File
- linkedin_profile/
linkedin_profile.module, line 147
Code
function linkedin_profile_user_view($account, $view_mode) {
if (variable_get('linkedin_profile_user_page_enabled', 0) == 2 && linkedin_profile_display_access($account)) {
$account->content['linkedin'] = array(
'#type' => 'user_profile_item',
'#title' => t('Linkedin'),
'#markup' => theme('linkedin_profile_user_page', array(
'profile' => $account->linkedin,
)),
'#weight' => variable_get('linkedin_profile_user_page_weight', 2),
);
}
}