Hi,
i would like to propose small patch which will repair status messages in custom themes:
in function theme_ajax_comments_notify_text we will need to change line:
return '<div id="messages"><div class="clearfix"><div class="messages ajax-comments ' . $status . '"><h2 class="element-invisible">Status message</h2>' . $text . '</div></div></div>';
to:
return theme('status_messages', drupal_set_message($text, $status));
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | ajax_comments-status-1881732-3.patch | 618 bytes | ttkaminski |
| #2 | ajax_comments-status-1881732.patch | 615 bytes | ttkaminski |
Comments
Comment #1
tntclaus commentedThis works for me very well. Are there anyone else who tried that patch?
Comment #2
ttkaminski commentedI like it. Much cleaner code :) I've attached a patch.
Comment #3
ttkaminski commentedThis line:
return theme('status_messages', drupal_set_message($text, $status));should be:
There is no need to pass the return value from drupal_set_message to the theme function. The theme function internally gets the messages.
Corrected patch attached.
Comment #4
adammaloneWorks for me and is a lot cleaner.
Comment #5
acouch commentedSorry I have been a bad maintainer. I might get some more time for this in the near future, but in case that falls through I posted a request for help on the project homepage.
Comment #6
dr.osd commented#3 works fine for version 7.x-1.0-alpha2.
Thanks!
Comment #7
muschpusch commentedcommitted to current dev. Sorry took some time :)
Comment #8
muschpusch commented