function token_theme in Token 7
Same name and namespace in other branches
- 8 token.module \token_theme()
- 6 token.module \token_theme()
Implements hook_theme().
1 call to token_theme()
- theme_token_tree_link in ./
token.pages.inc - Theme a link to a token tree either as a regular link or a dialog.
File
- ./
token.module, line 156 - Enhances the token API in core: adds a browseable UI, missing tokens, etc.
Code
function token_theme() {
$info['tree_table'] = array(
'variables' => array(
'header' => array(),
'rows' => array(),
'attributes' => array(),
'empty' => '',
'caption' => '',
'colgroups' => array(),
'sticky' => TRUE,
),
'file' => 'token.pages.inc',
);
$info['token_tree'] = array(
'variables' => array(
'token_types' => array(),
'global_types' => TRUE,
'click_insert' => TRUE,
'show_restricted' => FALSE,
'recursion_limit' => 3,
'dialog' => FALSE,
),
'file' => 'token.pages.inc',
);
$info['token_tree_link'] = array(
'variables' => array(
'text' => NULL,
'options' => array(),
'dialog' => TRUE,
) + $info['token_tree']['variables'],
'file' => 'token.pages.inc',
);
return $info;
}