function theme_tree_table in Token 7
Theme a tree table.
2 theme calls to theme_tree_table()
- theme_token_tree in ./
token.pages.inc - Provide a 'tree' display of nested tokens.
- token_devel_token_object in ./
token.pages.inc - Menu callback; prints the available tokens and values for an object.
File
- ./
token.pages.inc, line 75 - User page callbacks for the token module.
Code
function theme_tree_table($variables) {
foreach ($variables['rows'] as &$row) {
$row += array(
'class' => array(),
);
if (!empty($row['parent'])) {
$row['class'][] = 'child-of-' . $row['parent'];
unset($row['parent']);
}
}
if (!empty($variables['rows'])) {
drupal_add_library('token', 'treeTable');
}
return theme('table', $variables);
}