Timeline for how to show a message after a node form is submitted
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 8, 2013 at 16:05 | answer | added | Seb | timeline score: 4 | |
Nov 8, 2013 at 15:37 | comment | added | Clive♦ | Might be an idea to add your code to the question, it'll help to understand what you're trying to do. Why does your message need to be set outside of the transaction in particular? You understand that you can't stop a transaction right in the middle, then show a message, then resume the transaction again afterwards? Or am I misunderstanding what you're asking? | |
Nov 8, 2013 at 15:35 | comment | added | Fabrizio Regini | I did already @Clive but what I understood is that they are triggered either during a transaction or before the query is saved to db. | |
Nov 8, 2013 at 15:34 | comment | added | Clive♦ |
@FabrizioRegini See hook_node_insert() and hook_node_update() for node API methods, or hook_form_alter() if you'd rather alter the submission of the node add/edit form itself
|
|
Nov 8, 2013 at 15:33 | history | edited | Fabrizio Regini | CC BY-SA 3.0 |
added 64 characters in body
|
Nov 8, 2013 at 15:32 | comment | added | Mołot | So you want some kind of a confirmation step? Please see if my answer is sufficient or not yet. | |
Nov 8, 2013 at 15:27 | comment | added | Fabrizio Regini |
My problem is that I don't know where to put a call to drupal_set_message . I'd like to know if there's a hook I can call after the form has been saved to database but before the redirect.
|
|
Nov 8, 2013 at 15:24 | comment | added | Mołot |
Hello. Have you tried anything? Is there any code we can see? And have you seen the api docs for drupal_set_message ?
|
|
Nov 8, 2013 at 15:22 | review | First posts | |||
Nov 8, 2013 at 15:24 | |||||
Nov 8, 2013 at 15:03 | history | asked | Fabrizio Regini | CC BY-SA 3.0 |