Closed (fixed)
Project:
LinkedIn Integration
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2011 at 13:23 UTC
Updated:
31 May 2013 at 09:00 UTC
The follwing function prints an unordened list of positions:
global $user;
$account = user_load($user->uid);
print $account->linkedin['positions']['value'];
I'd like to print each value individually. How can I do this?
Comments
Comment #1
davad commentedThe positions are aggregated and stored in $user->linkedin['positions']['value']. Right now there's no way to access each position individually. If you want to roll a patch that keeps adds a $user->linkedin['positions'][$int] (where int is 0th, 1st, 2nd, etc positions), I'll be happy to review it.
As a side note, these two lines from your code snippet are redundant:
Since you're getting the $user variable, you can access the linkedin profile info directly:
Happy coding!
Comment #2
greg.harveyNo response after two years, assuming this is a fix!