function _og_subgroups_group_select_options_recursive in Subgroups for Organic groups 6
Recursive callback to help create group select options
See also
og_subgroups_group_select_options()
1 call to _og_subgroups_group_select_options_recursive()
- og_subgroups_group_select_options in includes/
form.inc - Create form select options for the subgroup selector
File
- includes/
form.inc, line 126
Code
function _og_subgroups_group_select_options_recursive(&$options, $branch, $indent) {
foreach ($branch as $child) {
// Check access to use this group
if (!og_subgroups_mask_group($child, TRUE)) {
$options[$child->nid] = $indent . ' ' . $child->title;
}
if (!empty($child->children)) {
_og_subgroups_group_select_options_recursive($options, $child->children, $indent . $indent);
}
}
}