You are here

function message_example_token_info in Message 7

Same name and namespace in other branches
  1. 8 modules/message_example/message_example.tokens.inc \message_example_token_info()

Implements hook_token_info().

File

message_example/message_example.tokens.inc, line 11
Token integration for the message example module.

Code

function message_example_token_info() {
  $info['tokens']['comment']['comment-teaser'] = array(
    'name' => t('Comment teaser'),
    'description' => t('Display a comment teaser.'),
  );
  $info['tokens']['node']['node-teaser'] = array(
    'name' => t('Node teaser'),
    'description' => t('Display a node teaser.'),
  );
  return $info;
}