function _theme_disable_messages_status_messages in Disable Messages 6
Same name and namespace in other branches
- 7 disable_messages.module \_theme_disable_messages_status_messages()
Implementation of theme_status_messages() hook to override the core status message output.
1 string reference to '_theme_disable_messages_status_messages'
- disable_messages_theme_registry_alter in ./
disable_messages.module - Implementation of hook_theme_registry_alter().
File
- ./
disable_messages.module, line 54
Code
function _theme_disable_messages_status_messages($display = NULL) {
// Retrieve messages
$messages = drupal_get_messages($display);
// Filter messages if filtering is enabled.
if (variable_get('disable_messages_enable', '1')) {
$messages = disable_messages_apply_filters($messages);
}
// Return themed status messages
return theme('disable_messages_status_messages', array(
'messages' => $messages,
));
}