summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Stjerneman2013-03-08 15:14:24 (GMT)
committerEmil Stjerneman2013-03-08 15:14:24 (GMT)
commita6826a53d152dff7b7cbd4df5436bb0a5325f28b (patch)
tree0088c43112884fa6b002cc7be6e31163935a853d
parent5af2c8caf3230e820b047f610f3b012461e0bb28 (diff)
Fixed #1848056: Insertion of link to unpublished node contains unwanted markup.
-rw-r--r--plugins/linkit_plugins/linkit-plugin-node.class.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/linkit_plugins/linkit-plugin-node.class.php b/plugins/linkit_plugins/linkit-plugin-node.class.php
index bef6d79..93c7d49 100644
--- a/plugins/linkit_plugins/linkit-plugin-node.class.php
+++ b/plugins/linkit_plugins/linkit-plugin-node.class.php
@@ -6,17 +6,11 @@
class LinkitPluginNode extends LinkitPluginEntity {
/**
- * If we are inclunding unpublished nodes in the search results, and this
- * entity is unpublished, we need to tell the user this.
- *
- * @return a string which will be used as the search result label for this
- * item.
+ * Returns a string which will be used as the search result label for this
+ * item.
*/
function buildLabel($entity) {
$label = parent::buildLabel($entity);
- if ($this->conf['include_unpublished'] && $entity->status == NODE_NOT_PUBLISHED) {
- $label .= '<span class="status"> - ' . t('unpublished') . '</span>';
- }
return $label;
}