You are here

function user_rev_diff_token_info in User Revision 7.2

Implements hook_token_info().

File

diff/user_rev_diff.tokens.inc, line 11
Builds placeholder replacement tokens for diff-related data.

Code

function user_rev_diff_token_info() {
  $user['diff'] = array(
    'name' => t('Latest differences'),
    'description' => t('The differences between the current revision and the previous revision of this user.'),
  );
  $user['diff-markdown'] = array(
    'name' => t('Latest differences (marked down)'),
    'description' => t('The differences between the current revision and the previous revision of this user, but with a marked-down form of each revision used for comparison.'),
  );
  return array(
    'tokens' => array(
      'user' => $user,
    ),
  );
}