There is a little mismatch of brackets which is corrected in the attached patch.
Patch looks good, but doesn't apply. Can you re-roll?
Patch rerolled on the latest dev release.
Thank you @jurgenhaas, second version committed to dev
Automatically closed - issue fixed for 2 weeks with no activity.
Issue #1392656 by jurgenhaas: Syntax error with drupal_set_message() and...
This issue has no child issues.
Drupal is a registered trademark of Dries Buytaert.