You are here

function token_theme in Token 8

Same name and namespace in other branches
  1. 6 token.module \token_theme()
  2. 7 token.module \token_theme()

Implements hook_theme().

File

./token.module, line 55
Enhances the token API in core: adds a browseable UI, missing tokens, etc.

Code

function token_theme() {
  $info['token_tree_link'] = [
    'variables' => [
      'token_types' => [],
      'global_types' => TRUE,
      'click_insert' => TRUE,
      'show_restricted' => FALSE,
      'show_nested' => FALSE,
      'recursion_limit' => 3,
      'text' => NULL,
      'options' => [],
    ],
    'file' => 'token.pages.inc',
  ];
  return $info;
}