function menu_get_items_in_tab_family
Search API
7.x menu.inc | menu_get_items_in_tab_family($tab_family) |
6.x menu.inc | menu_get_items_in_tab_family($tab_family) |
4.x menu.inc | menu_get_items_in_tab_family($tab_family) |
5.x menu.inc | menu_get_items_in_tab_family($tab_family) |
2 calls to menu_get_items_in_tab_family()
- fp_build_sub_tab_array in includes/
theme.inc - Create a "sub-tab" array, which looks like a standard tab_array, but it contains only this page's sub-tab siblings.
- fp_build_tab_array in includes/
theme.inc - Looks at the current page array and returns a valid $tab_array Meant for the top of the screen.
File
- includes/
menu.inc, line 202
Code
function menu_get_items_in_tab_family($tab_family) {
$rtn = array();
$res = db_query("SELECT path FROM menu_router WHERE tab_family = ?
ORDER BY weight, title", $tab_family);
while ($cur = db_fetch_array($res)) {
$path = $cur ["path"];
$item = menu_get_item($path);
if ($item) {
$rtn [] = $item;
}
}
return $rtn;
}