The attached patch adds a watchdog message upon the blocking of a user. I also changed the variable name in troll_block_user from $user to $account for clarity, and to avoid problems if global $user is ever introduced into that function. The existing messages that are output to the screen were fixed by changing the undefined $name variable to $account->name.

CommentFileSizeAuthor
#2 watchdog-1.png27.7 KBFrancewhoa
troll.watchdog.patch1.5 KBjhedstrom
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Francewhoa’s picture

Thanks jhedstrom. Subscribing. I'll test when time allowed. Then post my result here.

Francewhoa’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
27.7 KB

Confirming that patch works. Thanks jhedstrom :)

Tested with
*Troll 6.x-1.x-dev (2009-Aug-03)
*Drupal 6.13
*admin/reports/dblog

Anonymous’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

MrGeek’s picture

Is this included in the 6x ver. dated Jul 11 2010? I'm still not seeing any logged events.