function _spaces_casetracker_node_form_submit in Spaces 5.2
Custom submit handler for case node form for handling prepopulate & batch creation
File
- spaces_casetracker/
spaces_casetracker.module, line 120
Code
function _spaces_casetracker_node_form_submit($form_id, $form_values) {
if (trim($form_values['op']) == t('Submit + create another')) {
$query = array();
if (module_exists('prepopulate')) {
if (isset($form_values['assign_to'])) {
$query[] = 'edit[casetracker_case_information][assign_to]=' . $form_values['assign_to'];
}
if (isset($form_values['pid'])) {
$query[] = 'edit[casetracker_project_information][pid]=' . $form_values['pid'];
}
}
$query = implode('&', $query);
drupal_goto('node/add/casetracker-basic-case', $query);
}
}