I have modified the code to only show the status message for non admin pages.
It would be great if the status message was actually a block instead, this would give site builders the choice on what pages the block should appear on.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2908494-do-not-show-admin-pages.patch | 855 bytes | jozzy_a |
Comments
Comment #2
jozzy_a commentedComment #3
nsciacca+1 for this patch. I also think allowing it to be exposed as a block would be beneficial so the position & visibility rules could be configured.
Comment #4
nkoporecHey, @jozzy_a tested your patch, and it's working perfectly.Good job!
Definitely, agree that in the feature we should implement expose as a block and extend this module to be more dynamic...But we should create a new issue for this feature request.
Comment #5
nkoporecComment #7
labboy0276 commentedI took this one step further. I created a checkbox on the alert form that asks if you want to show on admin pages or not. I still gave jozzy_a credit.