You are here

function multiple_registration_remove_registration_form_submit in Multiple Registration 7

Submit function for multiple_registration_remove_registration_form.

1 string reference to 'multiple_registration_remove_registration_form_submit'
multiple_registration_remove_registration_form in ./multiple_registration.module
Form for removing registration page.

File

./multiple_registration.module, line 317
Add ability to create several registration pages.

Code

function multiple_registration_remove_registration_form_submit($form, &$form_state) {
  switch ($form_state['clicked_button']['#id']) {
    case 'edit-remove':
      $rid = $form_state['values']['rid'];
      if ($rid) {
        _multiple_registration_remove_page($rid);
      }
      break;
    default:
      $form_state['redirect'] = array(
        'admin/people/permissions/roles',
      );
  }
}