Why is my submit function never been executed?
/**
* Implements hook_menu().
*/
function simpleexample_menu() {
$items['simple-example-page'] = array(
'title' => 'Simple Multi-Step Form',
'page callback' => 'create_request_custom',
'access callback' => TRUE,
);
return $items;
}
function create_request_custom() {
module_load_include('inc', 'node', 'node.pages');
$form = node_add('request');
$form['simpleexample'] = array(
'#type' => 'value',
'#value' => simpleexample_get_session(),
);
$form['actions']['submit']['#submit'][] = 'create_request_custom_submit';
return $form;
}
function create_request_custom_submit($form, &$form_state) {
// never executing that
$params = array(
'nid' => $form_state['values']['nid'],
'session_id' => $form_state['values']['simpleexample'],
);
.....
}