function socialmedia_googleplus_platform_info in Social media 7
1 call to socialmedia_googleplus_platform_info()
- socialmedia_socialmedia_platform_info in ./
socialmedia.platforms.inc - @file Defines social media platforms
File
- ./
socialmedia.platforms.inc, line 315 - Defines social media platforms
Code
function socialmedia_googleplus_platform_info() {
$platforms = array();
$platforms['googleplus'] = array(
'title' => t('Google+'),
'description' => t('URL to your Google+ profile or page'),
'homepage' => 'https://plus.google.com/',
'redirect path' => 'google',
'parser callback' => 'socialmedia_googleplus_parser',
'tokens callback' => 'socialmedia_googleplus_tokens',
);
$platforms['googleplus']['form'] = array(
'title' => t('Google+ profile'),
'description' => t('URL to your Google+ profile'),
);
$platforms['googleplus']['tokens']['multi'] = array(
'googleplus_url' => array(
'name' => t("Google+ profile url"),
'description' => t("URL to Google+ profile."),
),
'googleplus_url-brief' => array(
'name' => t("Google+ profile url (brief)"),
'description' => t("URL to Google+ profile without protocol."),
),
'googleplus_username' => array(
'name' => t("Google+ name"),
'description' => t("Google+ profile name"),
),
);
return $platforms;
}