function sharerich_token_info in Sharerich 8
Same name and namespace in other branches
- 7.3 includes/sharerich.tokens.inc \sharerich_token_info()
- 7 includes/sharerich.tokens.inc \sharerich_token_info()
- 7.2 includes/sharerich.tokens.inc \sharerich_token_info()
Implements hook_token_info().
File
- ./
sharerich.tokens.inc, line 14 - Tokens for Sharerich.
Code
function sharerich_token_info() {
$type = array(
'name' => t('Sharerich Tokens'),
'description' => t('Tokens used to create the share buttons.'),
);
$token['fb_app_id'] = array(
'name' => t('Facebook App Id'),
'description' => t("The App Id used to display the share box."),
);
$token['fb_site_url'] = array(
'name' => t("Facebook site Url"),
'description' => t("The Url used to display the share box."),
);
$token['youtube_username'] = array(
'name' => t("Youtube Username"),
'description' => t("Used to display the share box."),
);
$token['github_username'] = array(
'name' => t("Github Username"),
'description' => t("Used to display the share box."),
);
$token['instagram_username'] = array(
'name' => t("Instagram Username"),
'description' => t("Used to display the share box."),
);
$token['twitter_user'] = array(
'name' => t("Twitter ID"),
'description' => t("Used in Twitter button via @userid."),
);
return array(
'types' => array(
'sharerich' => $type,
),
'tokens' => array(
'sharerich' => $token,
),
);
}