ao->group->find_all();
foreach ($cg as $go) {
$output .= sprintf('Group %s: %s
',$go->id,$go->display('name'));
foreach ($go->list_childgrps(TRUE) as $cgo)
$output .= sprintf('- %s: %s (%s)
',$cgo->id,$cgo->display('name'),$cgo->parent_id);
$output .= sprintf('END Group %s
',$go->id);
}
Block::add(array(
'title'=>'Group Structure',
'body'=>$output,
));
}
}
?>