diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-22 08:32:28 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-22 08:32:28 +0000 |
commit | fe8b35f52778b63b96c969da27d2929beee8c1b9 (patch) | |
tree | bb7a2a5014006acb1fc893e29299f2dc77918327 /modules/menu | |
parent | 39a0ee0264f2e6e88b66e983e53bbf8a98072d3b (diff) | |
download | brdo-fe8b35f52778b63b96c969da27d2929beee8c1b9.tar.gz brdo-fe8b35f52778b63b96c969da27d2929beee8c1b9.tar.bz2 |
#153781: Convert all remaining confirm_forms() to deletion api.
Diffstat (limited to 'modules/menu')
-rw-r--r-- | modules/menu/menu.module | 10 |
1 files changed, 8 insertions, 2 deletions
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(); |