You are here

function spaces_basic_form_submit in Spaces 6.2

Same name and namespace in other branches
  1. 5.2 spaces_admin.inc \spaces_basic_form_submit()
  2. 6 spaces_admin.inc \spaces_basic_form_submit()
1 string reference to 'spaces_basic_form_submit'
spaces_basic_form in ./spaces_admin.inc
BASIC FORM =========================================================

File

./spaces_admin.inc, line 466

Code

function spaces_basic_form_submit($form, &$form_state) {
  $space = $form_state['values']['space'];

  // Grab prefixes if space uses custom prefixes
  if (isset($form_state['values']['purl'])) {
    $space->purl = $form_state['values']['purl']['value'];
  }

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