function drush_devel_token
A command callback for listing available tokens.
File
-
./
devel.drush.inc, line 166
Code
function drush_devel_token() {
$rows[] = array(
dt('Group'),
dt('Token'),
dt('Name'),
);
$all = token_info();
foreach ($all['tokens'] as $group => $tokens) {
foreach ($tokens as $key => $token) {
$rows[] = array(
$group,
$key,
$token['name'],
);
}
}
drush_print_table($rows, TRUE);
}