function og_menu_og_links_alter in Organic Groups Menu (OG Menu) 6.2
Implementation of hook_og_links_alter().
File
- ./
og_menu.module, line 187 - Integrates Menu with Organic Groups. Lots of menu forms duplication in OG context.
Code
function og_menu_og_links_alter($links, $node) {
if (variable_get('og_block_og_menu', TRUE)) {
$menus = og_menu_get_group_menus(array(
$node->nid,
));
foreach ($menus as $menu) {
$links[$menu['menu_name']] = check_plain($menu['title']) . menu_tree($menu['menu_name']);
}
}
}