Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ctools
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
ctools
Commits
d5936ac2
Commit
d5936ac2
authored
Jan 15, 2012
by
Earl Miles
Committed by
James Gilliland
Jul 25, 2012
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1369852
: node_view task needs to do a drupal_set_title or the node title will get lost.
parent
dd14aa97
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
page_manager/plugins/tasks/node_view.inc
+3
-0
3 additions, 0 deletions
page_manager/plugins/tasks/node_view.inc
with
3 additions
and
0 deletions
page_manager/plugins/tasks/node_view.inc
+
3
−
0
View file @
d5936ac2
...
@@ -83,6 +83,9 @@ function page_manager_node_view($node) {
...
@@ -83,6 +83,9 @@ function page_manager_node_view($node) {
// Load the node into a context.
// Load the node into a context.
ctools_include
(
'context'
);
ctools_include
(
'context'
);
ctools_include
(
'context-task-handler'
);
ctools_include
(
'context-task-handler'
);
// We need to mimic Drupal's behavior of setting the node title here.
drupal_set_title
(
$node
->
title
);
$contexts
=
ctools_context_handler_get_task_contexts
(
$task
,
''
,
array
(
$node
));
$contexts
=
ctools_context_handler_get_task_contexts
(
$task
,
''
,
array
(
$node
));
$output
=
ctools_context_handler_render
(
$task
,
''
,
$contexts
,
array
(
$node
->
nid
));
$output
=
ctools_context_handler_render
(
$task
,
''
,
$contexts
,
array
(
$node
->
nid
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment