You are here

function theme_messages_alter_status_messages in Custom Submit Messages 7.x

Same name and namespace in other branches
  1. 7 messages_alter/messages_alter.module \theme_messages_alter_status_messages()

Theme function Using a theme function here so that if someone wants to overide it, they can.

1 theme call to theme_messages_alter_status_messages()
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 75
The main module file for Status Messages Alter.

Code

function theme_messages_alter_status_messages($variables) {
  $output = '';
  $theme_function = isset($variables['theme_function']) && !empty($variables['theme_function']) ? $variables['theme_function'] : 'theme_status_messages';
  $output = $theme_function($variables['variables']);
  return $output;
}