function nodeconnect_child_form_submit in Node Connect 7
Submiting of are child create form.
On submiting of a child form we set set the nid in the cache entry the rediect to our redirect page
1 string reference to 'nodeconnect_child_form_submit'
- nodeconnect_child_node_form_alter in ./
nodeconnect.form.inc - Alters are child create form.
File
- ./
nodeconnect.form.inc, line 125 - handles all form alters and submit functions for nodeconnect
Code
function nodeconnect_child_form_submit(&$form, &$form_state) {
$cache_id = $form_state['values']['parent_build_cache_id'];
if ($cache_id && ($cache = cache_get($cache_id))) {
$data = $cache->data;
$data['nid'] = $form_state['values']['nid'];
nodeconnect_cache_set($cache_id, $data);
$form_state['redirect'] = "admin/nodeconnect/return/{$cache_id}";
}
}