usernode.module sabotages all drupal_set_message() output during node creation ...

mykle - May 28, 2008 - 00:32
Project:Usernode
Version:5.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

... and that's wrong. It's fine to suppress the message 'usernode created successfully', but when the usernode is *not* being created successfully -- http://drupal.org/node/263507 -- then you are throwing away important information!

the solution would be to drupal_get_messages, then do the work, then drupal_get_messages() again, check whether the result is just your one unwanted error, and if not, combine the new error with the previous existing errors.

#1

fago - June 10, 2008 - 11:14

feel free to provide a clean patch that improves that

 
 

Drupal is a registered trademark of Dries Buytaert.