You are here

function socbutt_token_info in Bootstrap Social Sharing Buttons 8

Same name and namespace in other branches
  1. 7 socbutt.module \socbutt_token_info()

Implements hook_token_info().

File

./socbutt.module, line 17
Allows integration with the Twitter microblogging service.

Code

function socbutt_token_info() {
  $type = array(
    'name' => t('Socbutt tokens'),
    'description' => t("Socbutt tokens."),
  );
  $info['vertical'] = array(
    'name' => t("Social button bar, vertical"),
    'description' => t("Social button bar, vertical layout."),
    'type' => 'socbutt',
  );
  $info['horizontal'] = array(
    'name' => t("Social button bar, horizontal"),
    'description' => t("Social button bar, horizontal layout."),
    'type' => 'socbutt',
  );
  return array(
    'types' => array(
      'socbutt' => $type,
    ),
    'tokens' => array(
      'socbutt' => $info,
    ),
  );
}