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
Welcome to Backdrop! For your setup, you’ll want to create a subtheme of Bootstrap5 Lite itself; the Bootswatch styles (like Cerulean) are just presets that B5 Lite loads, and you can “lock in”...
Basic Theme designing questions, using Bootstrap5 Lite
Hi Rob, Welcome to Backdrop! Here’s a quick overview: Subtheming Bootswatch: You should create your subtheme based on Bootstrap5 Lite, not directly on a Bootswatch style....
Basic Theme designing questions, using Bootstrap5 Lite
Hi Rolf, This happens because CKEditor saves absolute or semi-absolute paths in the HTML instead of using Backdrop’s file stream wrappers (like public://). When you move your site...
Losing link to embedded pictures when moving my installation