function spaces_basic_form_submit in Spaces 6
Same name and namespace in other branches
- 5.2 spaces_admin.inc \spaces_basic_form_submit()
- 6.2 spaces_admin.inc \spaces_basic_form_submit()
1 string reference to 'spaces_basic_form_submit'
File
- ./
spaces_admin.inc, line 527
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);
}