function linkedin_profile_block_view in LinkedIn Integration 7
File
- linkedin_profile/
linkedin_profile.module, line 177
Code
function linkedin_profile_block_view($delta = '') {
if (variable_get('linkedin_profile_user_page_enabled', '0') == 3 && arg(0) == 'user' && is_numeric(arg(1))) {
$account = user_load(arg(1));
if (linkedin_profile_display_access($account)) {
$block['subject'] = t('Linkedin Profile');
$block['content'] = theme('linkedin_profile_user_page', array(
'profile' => $account->linkedin,
));
return $block;
}
}
return;
}