You are here

function spaces_customize_form_reset in Spaces 6

Reset submit handler for feature customization form.

1 string reference to 'spaces_customize_form_reset'
spaces_customize_form in ./spaces_admin.inc
Feature customization form.

File

./spaces_admin.inc, line 940

Code

function spaces_customize_form_reset($form, &$form_state) {
  $space = $form_state['values']['space'];
  $feature = $form_state['values']['feature'];
  $customizers = spaces_customizers();
  unset($space->customizer[$feature]);
  unset($space->settings[$feature]);
  spaces_save($space);
}