Skip to main content
added 64 characters in body
Source Link

How do I show a message (notice or alert) after the node form is submitted and saved?

I'm writing a module that synchronizes the node content with a remote endpoint. All working good. But, if for any reason the sync fails, I want to show a message on the page the user is redirected to.

I want something similar the green messagesMy problem is that says '... has been updated'. I can'tdon't find the right hook or function which is invoked after the form is saved to use for this purposedatabases but before the redirect happens, where I hopefully can set the message I want.

How do I show a message (notice or alert) after the node form is submitted and saved?

I'm writing a module that synchronizes the node content with a remote endpoint. All working good. But, if for any reason the sync fails, I want to show a message on the page the user is redirected to.

I want something similar the green messages that says '... has been updated'. I can't find the right hook to use for this purpose.

How do I show a message (notice or alert) after the node form is submitted and saved?

I'm writing a module that synchronizes the node content with a remote endpoint. All working good. But, if for any reason the sync fails, I want to show a message on the page the user is redirected to.

My problem is that I don't find the hook or function which is invoked after the form is saved to databases but before the redirect happens, where I hopefully can set the message I want.

Source Link

how to show a message after a node form is submitted

How do I show a message (notice or alert) after the node form is submitted and saved?

I'm writing a module that synchronizes the node content with a remote endpoint. All working good. But, if for any reason the sync fails, I want to show a message on the page the user is redirected to.

I want something similar the green messages that says '... has been updated'. I can't find the right hook to use for this purpose.