If you don't want to show a core, or contrib message to the end user, you now have to iterate $_SESSION['messages']
and search for the (translated, token replaced) string to unset it.
If a message has a unique key, you can easily override a message, or unset it.
function backdrop_set_message($message = NULL, $type = 'status', $repeat = TRUE, $message_key = FALSE) {
A simple unset($_SESSION['messages']['status']['unique_key'])
could remove the message, and $_SESSION['messages']['status']['unique_key'] = t('Something else');
changes it.
Recent comments
Hello, @yorkshirepudding! Thanks a lot, I got it, all sorted out.
My layout template (layout--blog.tpl.php) doesn't work
Hi @Gnome and welcome to Backdrop When I create custom layout templates I put them in /layouts/custom/my_layout Note: you can split modules and layouts between contrib and custom...
My layout template (layout--blog.tpl.php) doesn't work
This post explains how to do this in Drupal 7. In Backdrop, File Entity is already part of core. You will need to download and install module Views Field View. https://drupal.stackexchange...
I Need to Display an Image in a View that was Uploaded to a Webform