You are here

function token_devel_token_object in Token 6

Same name and namespace in other branches
  1. 7 token.pages.inc \token_devel_token_object()

Menu callback; prints the available tokens and values for an object.

1 string reference to 'token_devel_token_object'
token_menu in ./token.module
Implements hook_menu().

File

./token.pages.inc, line 154
User page callbacks for the token module.

Code

function token_devel_token_object($entity, $object) {
  $tokens = token_get_values($entity, $object);
  $tokens = array_combine($tokens->tokens, $tokens->values);
  return kdevel_print_object($tokens);
}