Hi Guys,

How can I call the og 'organic group' by using module_invoke()? It displays nothing when I use the code below in my .module file

Thanks in advance
-Mark

function theme_cec_community_list($param) {
    $list = $param['list'];
    $block_group = module_invoke('og', 'block', 'view', 0);

    $content = '<div>'.$block_group['content'].'</div>';
    return $content;
}

Comments

marknt15’s picture

Anyone please help me? I can't call the og using module_invoke.

marknt15’s picture

Did it by changing the delta to number 3. I checked the og module file. I was not familiar with the hook block before :\

$block_group = module_invoke('og', 'block', 'view', 3);