Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2007 at 05:18 UTC
Updated:
29 Nov 2009 at 02:18 UTC
I just accidentally hit the "reste to defaults" button on the pathauto config screen....and it did :0 Unfortunately, I'd put lots of patterns and things in, and blindly panicked for a while till I found them all safely in a backup of the variables table. An "Are You Sure" would have prevented the loss of data (and several hours work).
Comments
Comment #1
gregglesI'm reassigning this to the Drupal core project. Like most modules, the Pathauto settings pages is built using system_settings_form($form) function which automatically adds the "Reset to Defaults" button. While I'm sure I could write some custom code in Pathauto to implement this, it would be much better to do this in a manner that would benefit all modules.
And fwiw, I agree, that is a potentially dangerous action and dangerous actions should either 1) require confirmation or 2) be easy to undo (or both). This is neither :(
Comment #2
jody lynnComment #3
dave reidDuplicate of #104652: "Reset to defaults" needs confirmation dialog