Commit 7e0f48f4 authored by merlinofchaos's avatar merlinofchaos

Issue #1149778 by jonathan1055: Properly allow node pane titles to link to the node.

parent 5e5cfbc9
......@@ -77,11 +77,11 @@ function ctools_node_content_type_render($subtype, $conf, $panel_args) {
$block->module = 'node';
$block->delta = $node->nid;
// Set block->title to the plain node title, then additionally set block->title_link to
// the node url if required. The actual link is rendered in ctools_content_render().
$block->title = check_plain($node->title);
if (!empty($conf['link_node_title'])) {
$block->title = l($node->title, 'node/' . $node->nid);
else {
$block->title = check_plain($node->title);
$block->title_link = 'node/' . $node->nid;
if (empty($conf['leave_node_title'])) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment