menu_reset_item_confirm

Versions
6
menu_reset_item_confirm(&$form_state, $item)
7
menu_reset_item_confirm($form, &$form_state, $item)

Menu callback; reset a single modified item.

Code

modules/menu/menu.admin.inc, line 581

<?php
function menu_reset_item_confirm(&$form_state, $item) {
  $form['item'] = array('#type' => 'value', '#value' => $item);
  return confirm_form($form, t('Are you sure you want to reset the item %item to its default values?', array('%item' => $item['link_title'])), 'admin/build/menu-customize/'. $item['menu_name'], t('Any customizations will be lost. This action cannot be undone.'), t('Reset'));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.