You are here

function formdefaults_manage_reset_selected in Form Defaults 7

1 string reference to 'formdefaults_manage_reset_selected'
formdefaults_manage in ./formdefaults.admin.inc
Form management form used for inspecting and resetting forms.

File

./formdefaults.admin.inc, line 121
formdefaults.admin.inc Include for formdefaults administration screen.

Code

function formdefaults_manage_reset_selected($formid, &$form_state) {
  $form_values = $form_state['values'];
  $_SESSION['formdefaults_search'] = $form_values['search_str'];
  if ($form_values['results']['reset_forms']) {
    foreach ($form_values['results']['reset_forms'] as $form) {
      if ($form) {
        _formdefaults_delete_form($form);
      }
    }
  }
}