You are here

function rh_file_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_file/rh_file.module, line 39
Main module file for Rabbit Hole files module.

Code

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

  // Set the values of the variables.
  variable_set('rh_file_override_' . $values['type'], $values['rh_file_override']);
  variable_set('rh_file_action_' . $values['type'], $values['rh_file_action']);
  variable_set('rh_file_redirect_' . $values['type'], $values['rh_file_redirect']);
  variable_set('rh_file_redirect_response_' . $values['type'], $values['rh_file_redirect_response']);
}