You are here

function og_menu_generate_group_listing in Organic Groups Menu (OG Menu) 5

4 calls to og_menu_generate_group_listing()
og_menu_create_menus in ./og_menu.module
og_menu_form_alter in ./og_menu.module
og_menu_overview in ./og_menu.module
_generate_menu_listing in ./og_menu.module
Generates listing of menus in {og_menu}

File

./og_menu.module, line 430
Modifies the menu module to support menus specific to organic groups.

Code

function og_menu_generate_group_listing() {
  $user = user_load(array(
    'uid' => $GLOBALS['user']->uid,
  ));
  $groups = $user->og_groups;
  return $groups;
}