function messages_alter_invoke_message_alter in Custom Submit Messages 7.x
Same name and namespace in other branches
- 7 messages_alter/messages_alter.module \messages_alter_invoke_message_alter()
Loops through invokes all the modules that implement hook_message_alter().
1 call to messages_alter_invoke_message_alter()
- theme_messages_alter_alter in messages_alter/
messages_alter.module - Theme function This is the theme function that overrides theme('status_messages');
File
- messages_alter/
messages_alter.module, line 89 - The main module file for Status Messages Alter.
Code
function messages_alter_invoke_message_alter() {
// let's not confuse this object with
// the Drupal session array
// we're just going to add functionality
// with a class because I think
// it will be more fun this way
$messages = messages_alter_get_messages();
// this function speaks for itself
drupal_alter('message', $messages);
// we're cleaning this because
// sometimes there are fragmented
// messages after someone calls
// the remove method of the messages object
$messages
->clean();
}