summaryrefslogtreecommitdiff
path: root/modules/menu.module
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-12 16:21:40 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-12 16:21:40 +0000
commita4ae7a53f8388f7820049ce0e84d6dd181a5bb9d (patch)
tree17f063af552a0623f6a646e3db5e1ad6c9da3767 /modules/menu.module
parent80e53f26c6718d8f244317929e6c505ae2f96f16 (diff)
downloadbrdo-a4ae7a53f8388f7820049ce0e84d6dd181a5bb9d.tar.gz
brdo-a4ae7a53f8388f7820049ce0e84d6dd181a5bb9d.tar.bz2
#53654, remove module reset button, patch by Zen.
Diffstat (limited to 'modules/menu.module')
-rw-r--r--modules/menu.module26
1 files changed, 0 insertions, 26 deletions
diff --git a/modules/menu.module b/modules/menu.module
index 875887259..3395c9e0c 100644
--- a/modules/menu.module
+++ b/modules/menu.module
@@ -43,10 +43,6 @@ function menu_menu($may_cache) {
'callback' => 'menu_edit_item',
'access' => user_access('administer menu'),
'type' => MENU_LOCAL_TASK);
- $items[] = array('path' => 'admin/menu/reset', 'title' => t('reset menus'),
- 'callback' => 'menu_reset',
- 'access' => user_access('administer menu'),
- 'type' => MENU_LOCAL_TASK);
$items[] = array('path' => 'admin/settings/menu',
'title' => t('menus'),
@@ -224,28 +220,6 @@ function menu_overview() {
}
/**
- * Menu callback; clear the database, resetting the menu to factory defaults.
- */
-function menu_reset() {
- $op = isset($_POST['op']) ? $_POST['op'] : '';
- switch ($op) {
- case t('Reset all'):
- db_query('DELETE FROM {menu}');
- $mid = menu_edit_item_save(array('title' => t('Primary menu links'), 'pid' => 0, 'type' => MENU_CUSTOM_MENU));
- variable_set('menu_primary_menu', $mid);
- variable_set('menu_secondary_menu', $mid);
- drupal_set_message(t('The menu items have been reset to their default settings.'));
- drupal_goto('admin/menu');
- break;
- default:
- return confirm_form('menu_confirm_reset', array(),
- t('Are you sure you want to reset all menu items to their default settings?'),
- 'admin/menu', t('Any custom additions or changes to the menu will be lost.'),
- t('Reset all'));
- }
-}
-
-/**
* Menu callback; handle the adding of a new menu.
*/
function menu_add_menu() {