You are here

function groupmenu_delete_item_form in Group Menu 7

Form callback for group/%/menus/%menu/item/%menu_link/delete page.

1 string reference to 'groupmenu_delete_item_form'
groupmenu_menu in ./groupmenu.module
Implements hook_menu().

File

./groupmenu.pages.inc, line 223
Page callbacks for groupmenu.

Code

function groupmenu_delete_item_form($form, &$form_state, $item, $gid, $menu) {
  module_load_include('inc', 'menu', 'menu.admin');
  $form = menu_item_delete_form($form, $form_state, $item);
  $form_state['values']['link_path'] = $form['#item']['link_path'];
  $form['groupmenu_gid'] = array(
    '#type' => 'value',
    '#value' => $gid,
  );
  $form['groupmenu_name'] = array(
    '#type' => 'value',
    '#value' => $menu['menu_name'],
  );
  $form['#submit'][] = 'menu_item_delete_form_submit';
  $form['#submit'][] = 'groupmenu_redirect';
  $form['actions']['cancel']['#href'] = 'group/' . $gid . '/menus/' . $menu['menu_name'];
  return $form;
}