You are here

function groupmenu_redirect in Group Menu 7

Generic redirect function.

2 string references to 'groupmenu_redirect'
groupmenu_delete_item_form in ./groupmenu.pages.inc
Form callback for group/%/menus/%menu/item/%menu_link/delete page.
groupmenu_edit_item_form in ./groupmenu.pages.inc
Form callback; Build the menu link editing form.

File

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

Code

function groupmenu_redirect($form, &$form_state) {
  $gid = $form['groupmenu_gid']['#value'];
  $menu_name = $form['groupmenu_name']['#value'];
  $form_state['redirect'] = 'group/' . $gid . '/menus/' . $menu_name;
}