You are here

function rh_profile2_bundle_form_submit in Rabbit Hole 7.2

Submit callback for the bundle form.

This will set the values of the variables.

_state

Parameters

$form:

File

modules/rh_profile2/rh_profile2.module, line 54
Main module file for Rabbit Hole Profile2 module.

Code

function rh_profile2_bundle_form_submit($form, $form_state) {
  $values = $form_state['values'];

  // Set the values of the variables.
  variable_set('rh_profile2_override_' . $values['type'], $values['rh_profile2_override']);
  variable_set('rh_profile2_action_' . $values['type'], $values['rh_profile2_action']);
  variable_set('rh_profile2_redirect_' . $values['type'], $values['rh_profile2_redirect']);
  variable_set('rh_profile2_redirect_response_' . $values['type'], $values['rh_profile2_redirect_response']);
}