function nicemessages_preprocess_page in Nice messages 8.2
Same name and namespace in other branches
- 7.2 nicemessages.module \nicemessages_preprocess_page()
- 7 nicemessages.module \nicemessages_preprocess_page()
Implements hook_preprocess_page().
File
- ./
nicemessages.module, line 17
Code
function nicemessages_preprocess_page(&$vars) {
if (nicemessages_enabled()) {
if (nicemessages_pages_visibility() == FALSE) {
return;
}
// Do not display messages in standard way,
$vars['show_messages'] = false;
// display them with jGrowl
// nicemessages_get_messages();
// kint($vars);
}
}