diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-24 10:09:53 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-24 10:09:53 +0000 |
commit | 7093495f7c209d712ce951cb57781710f19f2653 (patch) | |
tree | bb9360175b19f5820cafe1616cff79afede5dc64 /modules/menu | |
parent | 028c8e60504546b1ad2342f168bbf5bf3d25f618 (diff) | |
download | brdo-7093495f7c209d712ce951cb57781710f19f2653.tar.gz brdo-7093495f7c209d712ce951cb57781710f19f2653.tar.bz2 |
#154046: Optimize confirm_form syntax for common usage (and fix some $form_state bugs).
Diffstat (limited to 'modules/menu')
-rw-r--r-- | modules/menu/menu.module | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/menu/menu.module b/modules/menu/menu.module index 424d9d75a..a8ad367e9 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -488,10 +488,11 @@ function menu_reset_item(&$form_state, $mlid) { $options = array( 'description' => t('Any customizations will be lost. This action cannot be undone.'), - 'yes' => t('Reset') + 'yes' => t('Reset'), + 'cancel' => 'admin/build/menu', ); - 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); + 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/navigation', $options); } else { drupal_not_found(); |