You are here

function registration_entity_settings_form_submit in Entity Registration 8

Same name and namespace in other branches
  1. 8.2 includes/registration.forms.inc \registration_entity_settings_form_submit()
  2. 7.2 includes/registration.forms.inc \registration_entity_settings_form_submit()
  3. 7 includes/registration.forms.inc \registration_entity_settings_form_submit()

Submit handler for registration_entity_settings_form().

@array $form @array $form_state

File

includes/registration.forms.inc, line 754
Form definitions and callbacks for Registration.

Code

function registration_entity_settings_form_submit($form, &$form_state) {
  $entity = $form_state['entity'];
  $fields = registration_convert_form_settings($form_state['values']);
  registration_update_entity_settings($entity['entity_type'], $entity['entity_id'], $fields);
  $uri = entity_uri($entity['entity_type'], entity_load_single($entity['entity_type'], $entity['entity_id']));
  $form_state['redirect'] = $uri['path'];
}