diff --git a/panopoly_magic.module b/panopoly_magic.module index cfe5530..c92e6f4 100644 --- a/panopoly_magic.module +++ b/panopoly_magic.module @@ -524,15 +524,12 @@ function panopoly_magic_render_fieldable_panels_pane_preview($type, $subtype, $c if ($entity && fieldable_panels_panes_access('view', $entity)) { $settings = field_bundle_settings('fieldable_panels_pane', $entity->bundle); $block = new stdClass(); + $block->type = $type; + $block->subtype = $subtype; $block->title = ''; if (empty($settings['extra_fields']['display']) || !empty($settings['extra_fields']['display']['title']['default']['visible'])) { if (!empty($entity->title)) { - if ($entity->link) { - $block->title = l($entity->title, $entity->path); - } - else { - $block->title = check_plain($entity->title); - } + $block->title = check_plain($entity->title); } }