You are here

function rh_bean_bundle_form_submit in Rabbit Hole 7.2

Submit callback for the bundle form.

This will set the values of the variables.

File

modules/rh_bean/rh_bean.module, line 42
Main module file for Rabbit Hole beans module.

Code

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

  // Set the values of the variables.
  variable_set('rh_bean_override_' . $values['bean_type']->type, $values['rh_bean_override']);
  variable_set('rh_bean_action_' . $values['bean_type']->type, $values['rh_bean_action']);
  variable_set('rh_bean_redirect_' . $values['bean_type']->type, $values['rh_bean_redirect']);
  variable_set('rh_bean_redirect_response_' . $values['bean_type']->type, $values['rh_bean_redirect_response']);
}