Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I've been going through the documentation for the form_state (api.drupal.org/api/drupal/includes!form.inc/function/…) and I was able to get things like the form_id from it, but not the machine_name of the field. Do you any other clues for me?
I guess I missunderstood you answer at first: renaming the other function to function b2share_form_node_form_alter(&$form, &$form_state, $form_id) { $form['actions']['submit']['#submit'][] = 'seal_the_deal'; } did the trick
Unfortuntely, no. I called it: function seal_the_deal($form, &$form_state, $entity_id, $entity_type) {...} and it's still called when trying to delete a node.
Not quite. I can call the submission_handler and partially fill the database, but I'm not quite there yet. I will post the final solution as an answer.