Revision 560c3060
Added by Julien Enselme about 9 years ago
drupal7/sites/all/modules/ctools/page_manager/plugins/tasks/node_view.inc | ||
---|---|---|
78 | 78 |
* node view, which is node_page_view(). |
79 | 79 |
*/ |
80 | 80 |
function page_manager_node_view_page($node) { |
81 |
// Prep the node to be displayed so all of the regular hooks are triggered. |
|
82 |
// Also save the output for later, in case it is needed. |
|
83 |
$default_output = node_page_view($node); |
|
84 |
|
|
85 | 81 |
// Load my task plugin |
86 | 82 |
$task = page_manager_get_task('node_view'); |
87 | 83 |
|
... | ... | |
107 | 103 |
} |
108 | 104 |
} |
109 | 105 |
|
106 |
// Prepare the node to be displayed so all of the regular hooks are triggered. |
|
107 |
$default_output = node_page_view($node); |
|
108 |
|
|
110 | 109 |
// Otherwise, fall back to the default output generated by node_page_view(). |
111 | 110 |
return $default_output; |
112 | 111 |
} |
Also available in: Unified diff
Update ctools 1.7 -> 1.9