In my drupal site when a user enter a email address to the newsletter on the right side block. The success message doesn’t display therefore, I checked the simplenews_subscriptions_page_form_submit() function and it’s actually setting the message like
if (simplenews_confirmation_send_combined()) {
drupal_set_message(t('You will receive a confirmation e-mail shortly containing further instructions on how to complete your subscription.'));
}
And after I’ve debug the drupal_get_messages() function to see is any value any values returns for it and Yes it is as
Array ( [status] => Array ( [0] => You will receive a confirmation e-mail shortly containing further instructions on how to complete your subscription. )
But in the font-theme doesn’t display anything I also checked theme_status_messages() function it actually initially checked for $display = $variables['display']; then when I debug this value it’s printing always empty but $variables['display'] value is set.
Could any please let me know how to fix this ?
FYI: I’m using Drupal v7
Are you sure that $messages variable is mentioned in the theme getting called ?
If not, mention in the page.tpl.php