You are here

function socialmedia_twitter_platform_info in Social media 7

1 call to socialmedia_twitter_platform_info()
socialmedia_socialmedia_platform_info in ./socialmedia.platforms.inc
@file Defines social media platforms

File

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

Code

function socialmedia_twitter_platform_info() {
  $platforms = array();
  $platforms['twitter'] = array(
    'title' => t('Twitter'),
    //'description' => t('URL to your Twitter account'),
    'homepage' => 'http://twitter.com/',
    'redirect path' => 'twitter',
    'parser callback' => 'socialmedia_twitter_parser',
    'tokens callback' => 'socialmedia_twitter_tokens',
  );
  $platforms['twitter']['form'] = array(
    'title' => t('Twitter profile'),
    'description' => t('URL to your Twitter profile'),
  );
  $platforms['twitter']['tokens']['multi'] = array(
    'twitter_url' => array(
      'name' => t("Twitter account url"),
      'description' => t("URL to twitter account."),
    ),
    'twitter_url-brief' => array(
      'name' => t("Twitter account url (brief)"),
      'description' => t("URL to twitter account without protocol."),
    ),
    'twitter_username' => array(
      'name' => t("Twitter username"),
      'description' => t("Twitter account username"),
    ),
    'twitter_amp-username' => array(
      'name' => t("Twitter @username"),
      'description' => t("Twitter account username preceded by @"),
    ),
    'twitter_user-timeline-widget-id' => array(
      'name' => t("Twitter user timeline widget ID"),
      'description' => t("Widget ID provided in Twitter widgets settings for the user timeline."),
    ),
  );
  return $platforms;
}