2

I have a template.php file with a theme called themename_status_messages

It's not being called/invoked by my theme.

When I use devel themer info on a test dsm output, I am told the candidate functions are: theme_messages_alter_status_messages()
themename_messages_alter_status_messages()

I'm not sure why the status_messages() call isn't being called during page load. Any ideas?

Laxman13
  • 5,226
  • 3
  • 23
  • 27
Justin
  • 2,914
  • 5
  • 41
  • 66

2 Answers2

1

Looks like the problem was there was a module enabled that changed how this was handled, and I didn't know the module was there and did that. The module was Messages Alter. Taught me a good less on in check the modules page for mysteries.

Justin
  • 2,914
  • 5
  • 41
  • 66
0

On your page.tpl.php, is there a $messages var being printing on the page anywhere?

A better way to see if $messages are being passed to your theme is to use a THEME_preprocess_page(&$vars) function in template.php:

function THEME_preprocess_page(&$vars) {
  dpm($vars);
  // or use $dpr($vars) for a textual array printout
  // Replace 'THEME' in the function name with the name of your theme.
}
Joe Hyde
  • 999
  • 7
  • 17