You are here

function socialmedia_linkedin_tokens in Social media 7

1 string reference to 'socialmedia_linkedin_tokens'
socialmedia_linkedin_platform_info in ./socialmedia.platforms.inc

File

./socialmedia.platforms.inc, line 557
Defines social media platforms

Code

function socialmedia_linkedin_tokens($key, $profile) {
  if (empty($profile['url'])) {
    return FALSE;
  }
  switch ($key) {

    // Simple key values on the node.
    case 'url':
      return 'http://' . $profile['url'];
    case 'url-brief':
      return $profile['url'];
    case 'username':
      return $profile['username'];
    case 'userid':
      return $profile['userid'];
    case 'type':
      return isset($profile['type']) ? $profile['type'] : '<none>';
  }
  return '';
}