Hi all,
For the forthcoming OMP, we're making more use of the Notifications framework and it might be useful here as well. Barbarah, have a look at pages/admin/AdminSettingsHandler.inc.php at the very end of the file:
- Code: Select all
import('classes.notification.NotificationManager');
$notificationManager = new NotificationManager();
$notificationManager->createTrivialNotification($user->getId());
This creates a "Your settings were saved" message. It's not an error condition, but you may be able to use the same structures to present an error as well; have a look at the NotificationManager's API.
This applies much more to OMP than OJS, but since they both share the same lib/pkp code including the base PKPNotificationManager class, it's worth investigating.
Regards,
Alec Smecher
Public Knowledge Project Team