Timeline for I would like to be able to trap when a particular message is sent via drupal_set_message
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 31, 2013 at 0:18 | comment | added | Jimajamma |
did you clear your caches/theme registry after adding this to your template.php? because at least here, it processes all of them and themes them via css with $type .
|
|
May 30, 2013 at 16:30 | comment | added | John Mitchell | Correction from my above comment it appears that only the error messages are trapped by the theme_status_messages function. | |
May 30, 2013 at 15:52 | comment | added | John Mitchell | I copied the above code into template.php and replaced theme with my theme name and I temporarily replaced the returned $output with a hardcoded string 'testing' but it does not change the message that is sent which is telling me that this function is not trapping when messages are ready to be sent. | |
May 29, 2013 at 17:06 | comment | added | Jimajamma | I didn't mean to suggest that; rather, to do something like if (strpos('','')!==FALSE) do something like send an email | |
May 29, 2013 at 15:42 | comment | added | John Mitchell | I don't want to change the message I just want to also send an email when message with a particular title is sent. | |
May 28, 2013 at 16:04 | history | answered | Jimajamma | CC BY-SA 3.0 |