Closed (fixed)
Project:
Access unpublished
Version:
7.x-1.01
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Jan 2015 at 17:38 UTC
Updated:
24 Apr 2015 at 15:53 UTC
Jump to comment: Most recent
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
Comment #2
martin_klimaThank you for report and fix.
Sorry for my late response, I missed notification.