You are here

function prlp_admin_settings_reset in Password Reset Landing Page (PRLP) 7

Same name and namespace in other branches
  1. 6 prlp.admin.inc \prlp_admin_settings_reset()

Submit handler for 'Reset to defaults' button.

Deletes all configuration variables for this module and gives a nice message.

1 string reference to 'prlp_admin_settings_reset'
prlp_admin_settings in ./prlp.admin.inc
Form builder function for PRLP config settings.

File

./prlp.admin.inc, line 69
Password Reset Landing Page admin pages.

Code

function prlp_admin_settings_reset(&$form, &$form_state) {
  prlp_delete_config_variables();
  $form_state['rebuild'] = FALSE;
  drupal_set_message(t('PRLP configuration has been reset to the defaults.'));
}