You are here

function _generate_menu_listing in Organic Groups Menu (OG Menu) 5

Generates listing of menus in {og_menu}

3 calls to _generate_menu_listing()
og_menu_check_block_status in ./og_menu.module
og_menu_form_alter in ./og_menu.module
og_menu_overview_tree in ./og_menu.module

File

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

Code

function _generate_menu_listing() {
  $groups = og_menu_generate_group_listing();
  $og_menus = array();
  foreach ($groups as $gid => $array) {
    $sql = 'SELECT * FROM {og_menu} WHERE gid = %d';
    $data = db_fetch_array(db_query($sql, $gid));
    $og_menus[$data['mid']] = $data;
  }
  return $og_menus;
}