From fe8b35f52778b63b96c969da27d2929beee8c1b9 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 22 Jun 2007 08:32:28 +0000 Subject: #153781: Convert all remaining confirm_forms() to deletion api. --- modules/menu/menu.module | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'modules/menu') diff --git a/modules/menu/menu.module b/modules/menu/menu.module index 1af1cec97..424d9d75a 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -464,7 +464,7 @@ function menu_item_delete_form(&$form_state, $mlid) { } $form['#item'] = $item; - return confirm_form($form, t('Are you sure you want to delete the custom menu item %item?', array('%item' => $item['link_title'])), 'admin/build/menu/'. $item['menu_name'], t('This action cannot be undone.'), t('Delete')); + return confirm_form($form, t('Are you sure you want to delete the custom menu item %item?', array('%item' => $item['link_title'])), 'admin/build/menu/'. $item['menu_name']); } /** @@ -485,7 +485,13 @@ function menu_item_delete_form_submit($form, &$form_state) { function menu_reset_item(&$form_state, $mlid) { if (isset($mlid) && $item = db_fetch_array(db_query('SELECT router_path, link_title FROM {menu_links} WHERE mlid = %d', $mlid))) { $form['#router_path'] = $item['router_path']; - 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', 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', $options); } else { drupal_not_found(); -- cgit v1.2.3