function groupmenu_admin_standard_menu_overview_page in Group Menu 7
Override menu.module's menu_overview_page().
We do this so that we can filter out groupmenu created menus from the listing so that we don't flood the admin pages.
@todo get this into groupmenu_pages.inc
See also
1 string reference to 'groupmenu_admin_standard_menu_overview_page'
- groupmenu_menu_alter in ./
groupmenu.module - Implements hook_menu_alter().
File
- ./
groupmenu.module, line 723 - Integrates menu with Group.
Code
function groupmenu_admin_standard_menu_overview_page() {
$result = db_query('SELECT *
FROM {menu_custom} mc
WHERE NOT EXISTS (SELECT gm.menu_name
FROM {group_menu} gm
WHERE gm.menu_name = mc.menu_name)
ORDER BY title;', array(), array(
'fetch' => PDO::FETCH_ASSOC,
));
$header = array(
t('Title'),
array(
'data' => t('Operations'),
'colspan' => '3',
),
);
$rows = array();
foreach ($result as $menu) {
$row = array(
theme('menu_admin_overview', array(
'title' => $menu['title'],
'name' => $menu['menu_name'],
'description' => $menu['description'],
)),
);
$row[] = array(
'data' => l(t('list links'), 'admin/structure/menu/manage/' . $menu['menu_name']),
);
$row[] = array(
'data' => l(t('edit menu'), 'admin/structure/menu/manage/' . $menu['menu_name'] . '/edit'),
);
$row[] = array(
'data' => l(t('add link'), 'admin/structure/menu/manage/' . $menu['menu_name'] . '/add'),
);
$rows[] = $row;
}
return theme('table', array(
'header' => $header,
'rows' => $rows,
));
}