Currently, it seems you can configure the 'fade-out' time for messages but not force them to remain on-screen until dismissed. I'd like to see an option to change this, as it could lead to valuable information being lost if a user simply looks away from the page for a minute for whatever reason.

Comments

tanc’s picture

Status: Active » Needs review

I've implemented a new feature to allow messages to remain onscreen, aka 'sticky' messages. This can be configured site-wide from the purr messages admin screen or alternatively called on a per-message basis by specifying the type as 'sticky'. See http://tanc.me/purr-messages-demo for a demonstration.

Example code for displaying a sticky error message if site wide sticky messages are not turned on:
drupal_set_message('This is a <strong>sticky</strong> message which is also an <strong>error</strong> and will only clear with user interaction', 'sticky error');

danepowell’s picture

Status: Needs review » Fixed

Looks good, thanks for the quick response!

Status: Fixed » Closed (fixed)

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

  • tanc committed aa56cc2 on 7.x-2.x, 8.x-2.x
    Issue #1424792 by tanc: New feature - sticky messages. Updated README....