You are here

function groupmenu_update_menu in Group Menu 7

Updates internal record of group's menu id.

3 calls to groupmenu_update_menu()
groupmenu_edit_menu_form_submit in ./groupmenu.module
Submit handler used on various forms.
groupmenu_entity_insert in ./groupmenu.module
Implements hook_entity_insert().
groupmenu_entity_update in ./groupmenu.module
Implements hook_entity_update().

File

./groupmenu.module, line 519
Integrates menu with Group.

Code

function groupmenu_update_menu($menu_name, $gid) {
  db_merge('group_menu')
    ->key(array(
    'menu_name' => $menu_name,
  ))
    ->fields(array(
    'gid' => $gid,
  ))
    ->execute();
}