You are here

function spaces_basic_form_submit in Spaces 5.2

Same name and namespace in other branches
  1. 6 spaces_admin.inc \spaces_basic_form_submit()
  2. 6.2 spaces_admin.inc \spaces_basic_form_submit()

File

./spaces_admin.inc, line 496

Code

function spaces_basic_form_submit($form_id, $form_values) {
  $space = $form_values['space'];

  // Grab prefixes if space uses custom prefixes
  if (isset($form_values['context_prefix'])) {
    $space->prefix = $form_values['context_prefix']['prefix'];
  }

  // Retrieve selected preset and enforce values
  $space->preset = $form_values['preset'];
  spaces_preset_enforce($space);
  spaces_save($space);
}