function _fieldgroup_plain_tree in Content Construction Kit (CCK) 6.3
go through a set of fieldgroups and construct a simple representation of their hierarchy
1 call to _fieldgroup_plain_tree()
- content_field_overview_form in includes/
content.admin.inc - Menu callback; listing of fields for a content type.
File
- modules/
fieldgroup/ fieldgroup.module, line 322 - Create field groups for CCK fields.
Code
function _fieldgroup_plain_tree($items) {
$rows = array();
$rows[''] = '<' . t('none') . '>';
foreach ($items as $item) {
$group_name = $item['group_name'];
$label = t($item['label']);
if ($group_name) {
$rows[$group_name] = str_repeat('--', $item['depth']) . ' ' . $label;
}
}
return $rows;
}