function varbase_hide_warning_and_status_messages in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.7
Same name and namespace in other branches
- 8.8 varbase.profile \varbase_hide_warning_and_status_messages()
- 8.4 varbase.profile \varbase_hide_warning_and_status_messages()
- 8.5 varbase.profile \varbase_hide_warning_and_status_messages()
- 8.6 varbase.profile \varbase_hide_warning_and_status_messages()
- 9.0.x varbase.profile \varbase_hide_warning_and_status_messages()
Batch function to hide warning messages.
Parameters
bool $hide: To hide or not.
3 string references to 'varbase_hide_warning_and_status_messages'
- varbase_assemble_development_tools in ./
varbase.profile - Batch job to assemble Varbase extra components.
- varbase_assemble_extra_components in ./
varbase.profile - Batch job to assemble Varbase extra components.
- varbase_configure_multilingual in ./
varbase.profile - Batch job to configure multilingual components.
File
- ./
varbase.profile, line 524 - Enables modules and site configuration for a Varbase site installation.
Code
function varbase_hide_warning_and_status_messages($hide) {
if ($hide && !isset($_SESSION['messages']['error'])) {
unset($_SESSION['messages']);
}
}