function LinkitSearchPluginNode::createRowClass in Linkit 7.3
Overrides LinkitSearchPluginEntity::createRowClass().
Adds an extra class if the node is unpublished.
Overrides LinkitSearchPluginEntity::createRowClass
File
- plugins/
linkit_search/ node.class.php, line 17 - Define Linkit node search plugin class.
Class
- LinkitSearchPluginNode
- Reprecents a Linkit node search plugin.
Code
function createRowClass($entity) {
if ($this->conf['include_unpublished'] && $entity->status == NODE_NOT_PUBLISHED) {
return 'unpublished-node';
}
}