function theme_token_list
3.x tripal.entities.api.inc | theme_token_list($tokens) |
Formats the tokens for display.
Parameters
array $tokens: A list of tokens generated via tripal_get_entity_tokens().
Return value
Rendered output describing the available tokens.
Related topics
2 calls to theme_token_list()
- remote__data::instanceSettingsForm in tripal_ws/
includes/ TripalFields/ remote__data/ remote__data.inc - tripal_tripal_bundle_form in tripal/
includes/ TripalBundleUIController.inc - Tripal content type edit form.
File
- tripal/
api/ tripal.entities.api.inc, line 1179 - Provides an application programming interface (API) for working with TripalEntity content types (bundles) and their entities.
Code
function theme_token_list($tokens) {
$header = array('Token', 'Name', 'Description');
$rows = array();
foreach ($tokens as $details) {
$rows[] = array(
$details['token'],
$details['label'],
$details['description'],
);
}
return theme('table', array('header' => $header, 'rows' => $rows));
}