Drupal: displaying warnings
how can I disabl开发者_Go百科e warnings for my users in Drupal (and keep them on only for the administrator) ?
thanks
You can't do this yet in Drupal 6. An issue has been created for this.
However, you can disable all on-screen warnings by going to Administer > Site configuration > Error reporting as stated on the Book page for Securing Information from Visitors. Errors will still be viewable by the roles given permission to do so by going to: Admin > Reports.
Go to Administer > Site configuration > Error reporting (admin/settings/error-reporting). There you have a dropdown list under 'Error reporting' with the two choices you have for the error logging, being:
* Write errors to the log.
* Write errors to the log and to the screen.
Choose this option --> Write errors to the log
And save
you can try the Better messages module. Some more details about this module (from its project page):
Better Messages is a very simple module that provides "Popup-like" Drupal messages.
Better Messages intends to let you control where and how you want to see your Drupal messages! Combine different animations and override
better_messages.tpl.php
to create your custom look.
精彩评论