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

greggles’s picture

Title: An "Are you sure" intermediate step on the "Reset to Defaults" button » Add "Are you sure" intermediate step on the "Reset to Defaults" button
Project: Pathauto » Drupal core
Version: 5.x-2.x-dev » 7.x-dev
Component: Code » forms system

I'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 :(

jody lynn’s picture

Component: forms system » usability
Category: feature » task
dave reid’s picture

Component: usability » base system
Status: Active » Closed (duplicate)