I'm trying to set a warning message based on a PHP if statement in my page.tpl.php file. I can get a message out using
$messages but I cannot using
drupal_set_message(). Should I be using the latter before page.tpl.php?
The problem is the
$messages variable comes out as plain text, I'd like to use Drupal's message system if possible:
drupal_set_message(t('Don\'t panic!'), 'warning'); $messages = t('Don\'t panic!');