Hi, I have a Drupal question and can't seem to get any help on the Drupal forums. Hopefully there's a savy Drupal user out there; I think this is a basic question but we need it to get going in the framework...
I should be able to add a submit function to any form, adding it when the form loads:
function mytheme_node_form($form)
{
if($form_id['#value'] == 'event_node_form') {
drupal_set_message('too granular');
$form['#submit'][mytheme_form_handler'] = array();
}
$output = '';
$output .= drupal_render($form);
return $output;
}
function mytheme_form_handler($form_id, $form_values)
{
// ...
}
But this is not getting handeled in the API. I can look at a var_dump of the form and submit is there. Any help?
Thanks