You are here

function tb_megamenu_get_megamenus in The Better Mega Menu 7

2 calls to tb_megamenu_get_megamenus()
tb_megamenu_admin_settings in ./tb_megamenu.admin.inc
tb_megamenu_block_info in ./tb_megamenu.module

File

./tb_megamenu.functions.inc, line 119

Code

function tb_megamenu_get_megamenus() {
  $query = db_select('menu_custom', 'm');
  $query
    ->leftJoin('tb_megamenus', 't', 't.menu_name = m.menu_name');
  $query
    ->fields('m');
  $menus = $query
    ->execute()
    ->fetchAll();
  return $menus;
}