You are here

function footermap_get_primary_menus in footermap: a footer site map 6

Same name and namespace in other branches
  1. 5.2 footermap.module \footermap_get_primary_menus()
  2. 7 footermap.module \footermap_get_primary_menus()
1 call to footermap_get_primary_menus()
footermap_settings in ./footermap.module

File

./footermap.module, line 306

Code

function footermap_get_primary_menus($top_menu) {
  $ret = array();
  if (!is_numeric($top_menu)) {
    return $ret;
  }
  $res = db_query("SELECT * FROM {menu_links} WHERE plid = %d AND hidden = 0", $top_menu);
  while ($menu = db_fetch_object($res)) {
    $ret[$menu->menu_name] = t($menu->menu_name);
  }
  return $ret;
}