';
$output .= messaging_template_format_tree(messaging_template_get_branch($template));
$output .= '
';
$output .= '';
$description = t('These are the message parts for %group.', array('%group' => $info['name']));
if (!empty($info['description'])) {
$description .= ' ' . $info['description'];
}
$output .= '
' . $description . '
';
if (!empty($info['help'])) {
$output .= '
' . $info['help'] . '
';
}
if (!empty($info['fallback'])) {
$output .= '
' . t('The fallback template from which message parts will be taken if left blank is %template_name', array('@template_edit' => url('admin/messaging/template/edit/' . $info['fallback']), '%template_name' => messaging_template_message_group($info['fallback'], 'name'))) . '
';
}
$output .= '
';
return $output;
}
/*
* Overview of message parts and sending methods
*/
function messaging_template_admin_template() {
$output = '';
// Now build table which will have some indentation
$output .= messaging_template_format_table(messaging_template_get_tree());
// List sending methods
$rows = array();
messaging_method_list();
foreach (messaging_method_info() as $method => $info) {
$rows[] = array(
'