Hi. I have patched your code to insert statistics in "node" object when a groups is loaded.

CommentFileSizeAuthor
og_statistics.patch396 bytesziobudda

Comments

ziobudda’s picture

Ops: groups = group.

dawehner’s picture

can you write tests for it?

ziobudda’s picture

Hem ?? How ? Some links plz :D Thanks.

dawehner’s picture

ziobudda’s picture

Have you see my patch ? How can I make a SimpleTest for this type of patch ?

M.

dawehner’s picture

Status: Active » Needs work

create a group
create some nodes in this group

node_load a group and see whether the statistics you are expecting are in.

@ziobudda
I commited your patch. I hope you create a simpletest, too.