function _oa_sections_is_parent in Open Atrium Core 7.2
Helpder function to determine if an item or it's children have a mlid.
1 call to _oa_sections_is_parent()
- oa_sections_og_menu_single_menu_parent in modules/
oa_sections/ oa_sections.module - Implements hook_og_menu_single_menu_parent().
File
- modules/
oa_sections/ oa_sections.module, line 128
Code
function _oa_sections_is_parent($item, $mlid) {
if ($item['link']['mlid'] == $mlid) {
return TRUE;
}
foreach ($item['below'] as $child_item) {
if (_oa_sections_is_parent($child_item, $mlid)) {
return TRUE;
}
}
}