Reset To Defaults

Codera - July 3, 2008 - 18:33

Hi, I was just wondering if there was a hook or a custom method in using the "Reset To Defaults" button on forms in the administration section?
The reason why it doesn't work by default is because I'm storing the form data in an individual table rather than storing them in the variables table using variable_set().

So, in conclusion I want to be able to update a database table with default values when "Reset To Defaults" is clicked. The default values will be stored in variables or an array in the actual function.

 
 

Drupal is a registered trademark of Dries Buytaert.