function messaging_template_token_group in Messaging 6.3
1 call to messaging_template_token_group()
- messaging_template_token_description in messaging_template/
messaging_template.admin.inc - Token list and description
File
- messaging_template/
messaging_template.admin.inc, line 386 - Messaging Framework - Admin UI
Code
function messaging_template_token_group($title, $list, $description = '') {
$rows = array();
//$headers = array(t('Token'), t('Replacement value'));
foreach ($list as $token => $name) {
$rows[] = array(
'[' . $token . ']',
$name,
);
}
$items = array(
'#type' => 'fieldset',
'#title' => $title,
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#description' => $description,
);
$items['list'] = array(
'#value' => theme('table', array(), $rows),
);
return $items;
}