tags:

views:

31

answers:

2

I would like to be able to programmatic-ally delete a node:

node_delete(N);

Without getting something like the following message when the page is refreshed:

Document Delivery Request Sather, Kinzer-Tevaris v. Smith, Death has been deleted

Is this possible?

+2  A: 

If you call drupal_get_messages before the end of your script it will reset the messages queue.

Check out the documentation here.

Icode4food
This is exactly what I'm looking for! Thanks!
DKinzer
+1  A: 

For non-developers I created the Rules integrated "better messages" module, which adds the clean action. So if you want to do the same nicely, you can use the module.

Regards, Shushu

Shushu

related questions