When I set the Display hashed link to unpublished node in a Drupal message, this module successfully performs a Drupal Set message.

Yet, when viewing a panelized page, the node_view hook is being called twice - and the notice is being displayed twice.

The fix is simple: setting $repeat = FALSE for drupal_set_message() will prevent duplication.

if (variable_get('access_unpublished_display_link_in_drupal_message', 1)) {
// Show link in Drupal message.
drupal_set_message($au_link_text, 'status', FALSE); // <--- Added ,FALSE
}

Comments

  • martin_klima committed c9bf915 on 7.x-1.x
    Issue #2400973 by rtdean93: Duplicate DSM messages showing on Panelized...
martin_klima’s picture

Status: Active » Closed (fixed)

Thank you for report and fix.
Sorry for my late response, I missed notification.