when reading new messages in mgrowl_json(), message display size is fixed (truncate_utf8()). This causes problems with system-created events, which don't have much visible text, but have semantic structures in them.

So, truncated size should be configurable / use node teaser size.
Or, possibly use node_teaser() directly.

CommentFileSizeAuthor
#2 length.patch2.08 KBBerdir
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Yes, I guess a variable for the length + using node_teaser (has been renamed to text_summary() in D7) is the way to go. Will tackle this once #495662: Theme functions for notifications is in.

Berdir’s picture

Status: Active » Needs review
FileSize
2.08 KB

Ok, as promised, here is a patch. As said above, this uses node_teaser() and makes the length configurable with a setting that defaults to 400.

Please test.