function messaging_template_admin_tree in Messaging 6.3
Recursively build a table tree for fallback methods
1 call to messaging_template_admin_tree()
- messaging_template_admin_overview in messaging_template/
messaging_template.admin.inc
File
- messaging_template/
messaging_template.admin.inc, line 137 - Messaging Framework - Admin UI
Code
function messaging_template_admin_tree($parents, $templates, $depth = 0) {
$rows = array();
foreach ($parents as $name) {
$info = $templates[$name];
$rows[] = array(
theme('indentation', $depth) . theme('messaging_template_admin_type', $info),
//!empty($info['description']) ? $info['description'] : '',
($parts = messaging_template_get_keys($name)) ? implode(', ', $parts) : '',
);
if (!empty($info['children'])) {
$rows = array_merge($rows, messaging_template_admin_tree($info['children'], $templates, $depth + 1));
}
}
return $rows;
}