You are here

function rh_node_bundle_form_submit in Rabbit Hole 7.2

Submit callback for the bundle form.

This will clean the garbage variables saved by node_type_form_submit().

File

modules/rh_node/rh_node.module, line 43
Main module file for Rabbit Hole nodes module.

Code

function rh_node_bundle_form_submit($form, $form_state) {
  if (!empty($form_state['values']['type'])) {
    $type = $form_state['values']['type'];
    variable_del('rh_module_' . $type);
    variable_del('redirect_setting_name_' . $type);
  }
}