diff --git a/page_manager/plugins/tasks/node_view.inc b/page_manager/plugins/tasks/node_view.inc index 6de28ad..cd916b2 100644 --- a/page_manager/plugins/tasks/node_view.inc +++ b/page_manager/plugins/tasks/node_view.inc @@ -78,6 +78,11 @@ function page_manager_node_view_menu_alter(&$items, $task) { * node view, which is node_page_view(). */ function page_manager_node_view_page($node) { + // Prep the node to be displayed so all of the regular hooks are triggered. + // Also save the output for later, in case it is needed. + $default_output = node_page_view($node); + $default_output = drupal_render($default_output); + // Load my task plugin. $task = page_manager_get_task('node_view'); @@ -120,9 +125,6 @@ function page_manager_node_view_page($node) { } } - // Prepare the node to be displayed so all of the regular hooks are triggered. - $default_output = node_page_view($node); - // Otherwise, fall back to the default output generated by node_page_view(). return $default_output; }