You are here

function social_media_links_social_media_links_platform_info in Social Media Links Block and Field 7

Register the default platforms.

Return value

array List with the default supported platforms.

File

./social_media_links.platforms.inc, line 14
Callbacks for the platforms.

Code

function social_media_links_social_media_links_platform_info() {
  $platforms['facebook'] = array(
    'title' => t('Facebook'),
    'base url' => 'https://www.facebook.com/',
  );
  $platforms['twitter'] = array(
    'title' => t('Twitter'),
    'base url' => 'http://www.twitter.com/',
  );
  $platforms['googleplus'] = array(
    'title' => t('Google+'),
    'base url' => 'https://plus.google.com/',
    'image alt' => 'Google+ icon',
  );
  $platforms['tumblr'] = array(
    'title' => t('Tumblr'),
    'base url' => '',
    'image alt' => 'Tumblr',
  );
  $platforms['instagram'] = array(
    'title' => t('Instagram'),
    'base url' => 'http://www.instagram.com/',
  );
  $platforms['linkedin'] = array(
    'title' => t('LinkedIn'),
    'base url' => 'http://www.linkedin.com/',
  );
  $platforms['pinterest'] = array(
    'title' => t('Pinterest'),
    'base url' => 'http://www.pinterest.com/',
  );
  $platforms['vimeo'] = array(
    'title' => t('Vimeo'),
    'base url' => 'http://www.vimeo.com/',
  );
  $platforms['youtube'] = array(
    'title' => t('YouTube'),
    'base url' => 'http://www.youtube.com/user/',
  );
  $platforms['youtube_channel'] = array(
    'title' => t('Youtube (Channel)'),
    'base url' => 'http://www.youtube.com/channel/',
  );
  $platforms['rss'] = array(
    'title' => t('RSS'),
    'base url' => url(NULL, array(
      'absolute' => TRUE,
    )) . (variable_get('clean_url', 0) ? '' : '?q='),
  );
  $platforms['contact'] = array(
    'title' => t('Contact'),
    'base url' => url(NULL, array(
      'absolute' => TRUE,
    )) . (variable_get('clean_url', 0) ? '' : '?q='),
    'link attributes' => FALSE,
  );
  $platforms['email'] = array(
    'title' => t('E-Mail'),
    'base url' => '',
    'url callback' => 'social_media_links_email_url',
    'link attributes' => FALSE,
  );
  return $platforms;
}