Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently an inactive user gets warnings about becoming inactive and then gets blocked without a mail about the action of getting blocked.
It would be nice to send them an email at the moment they are blocked so they know what happened.
Comment | File | Size | Author |
---|---|---|---|
#14 | user_expire-expire-email-2611890-14-D7.patch | 9.61 KB | bhavikshah9 |
| |||
#10 | user_expire-expire-mail-2611890-10-D7.patch | 9.57 KB | bhavikshah9 |
| |||
#5 | user_expire-expire-mail-2611890-5-D7.patch | 2.32 KB | bhavikshah9 |
| |||
#2 | user_expire-expire-email-2611890-2-d7.patch | 1.94 KB | bhavikshah9 |
|
Comments
Comment #2
bhavikshah9 CreditAttribution: bhavikshah9 as a volunteer commentedHere is the patch for requested feature.
Comment #3
bhavikshah9 CreditAttribution: bhavikshah9 as a volunteer commentedComment #4
gregglesThis all seems like an improvement. One thought:
Now that's inside an if, it seems good to have an "else" case that will log an error to watchdog and do a drupal_set_message. Can you provide that?
Comment #5
bhavikshah9 CreditAttribution: bhavikshah9 as a volunteer commentedSure.
Here is the updated patch with else case that log an error to watchdog and does a drupal_set_message.
Comment #6
bhavikshah9 CreditAttribution: bhavikshah9 as a volunteer commentedComment #7
bhavikshah9 CreditAttribution: bhavikshah9 as a volunteer commentedCan someone RTBC this?
Comment #8
gregglesHi bhavikshah9, it would help rtbc if you could provide an automated test for this feature.
Any chance you have time to do that?
Comment #9
bhavikshah9 CreditAttribution: bhavikshah9 as a volunteer commentedHi greggles, Sure. Soon, I will provide new patch with automated test.
Comment #10
bhavikshah9 CreditAttribution: bhavikshah9 as a volunteer commentedHere is the latest patch with automated test.
Comment #11
bhavikshah9 CreditAttribution: bhavikshah9 as a volunteer commentedCan someone RTBC this?
Comment #12
gregglesI did a more thorough code-level review and found some items that seem ideal to fix.
Thanks for all your work so far. I think this is really close!
Missing punctuation on the end of the line.
I think it's more common to leave "User" lower case in the middle of the sentence. Also, the default watchdog severity level is a notice, but this seems more important than that. WATCHDOG_ERROR or WATCHDOG_CRITICAL seem more appropriate to me.
I think the comma in this line is not grammatically correct. I suggest removing it.
Thanks for all the code cleanup and for adding tests for this new code!
Comment #13
bhavikshah9 CreditAttribution: bhavikshah9 as a volunteer commentedHi @greggles,
Thanks for re-viewing my code. I will apply those corrections and will submit new patch soon.
Comment #14
bhavikshah9 CreditAttribution: bhavikshah9 as a volunteer commentedHere is the fresh patch with all the updates and suggested corrections.
Comment #15
bhavikshah9 CreditAttribution: bhavikshah9 as a volunteer commentedComment #17
gregglesThanks for the work!
This is now committed.