You are here

function multiple_registration_create_registration_form_submit in Multiple Registration 7

Submit function for multiple_registration_create_registration_form.

1 string reference to 'multiple_registration_create_registration_form_submit'
multiple_registration_create_registration_form in ./multiple_registration.module
Form for creating new registration page.

File

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

Code

function multiple_registration_create_registration_form_submit($form, &$form_state) {
  $rid = $form_state['values']['rid'];

  // Before creating new alias, delete old aliases.
  _multiple_registration_remove_page_alias($rid);
  $params = array(
    'source' => $form_state['values']['multiple_registration_url_' . $rid],
    'alias' => $form_state['values']['multiple_registration_path_' . $rid],
  );
  path_save($params);
  multiple_registration_cc_flag();
}