You are here

function sharerich_token_info in Sharerich 7.3

Same name and namespace in other branches
  1. 8 sharerich.tokens.inc \sharerich_token_info()
  2. 7 includes/sharerich.tokens.inc \sharerich_token_info()
  3. 7.2 includes/sharerich.tokens.inc \sharerich_token_info()

Implements hook_token_info().

File

includes/sharerich.tokens.inc, line 10
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."),
  );
  return array(
    'types' => array(
      'sharerich' => $type,
    ),
    'tokens' => array(
      'sharerich' => $token,
    ),
  );
}