#156793 by webernet: menu reset confirmation form contained deletion API remainings

6.x
Gábor Hojtsy 2007-07-04 18:56:12 +00:00
parent 2aeab67487
commit 0c0a340f29
1 changed files with 1 additions and 6 deletions

View File

@ -486,12 +486,7 @@ function menu_item_delete_form_submit($form, &$form_state) {
*/ */
function menu_reset_item(&$form_state, $item) { function menu_reset_item(&$form_state, $item) {
$form['item'] = array('#type' => 'value', '#value' => $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'));
$options = array(
'description' => t('Any customizations will be lost. This action cannot be undone.'),
'yes' => t('Reset')
);
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'], $options);
} }
/** /**