You are here

function LinkitSearchPluginNode::getQueryInstance in Linkit 7.3

Overrides LinkitSearchPluginEntity::getQueryInstance().

Overrides LinkitSearchPluginEntity::getQueryInstance

File

plugins/linkit_search/node.class.php, line 26
Define Linkit node search plugin class.

Class

LinkitSearchPluginNode
Reprecents a Linkit node search plugin.

Code

function getQueryInstance() {

  // Call the parent getQueryInstance method.
  parent::getQueryInstance();

  // If we don't want to include unpublished nodes, add a condition on status.
  if ($this->conf['include_unpublished'] == 0) {
    $this->query
      ->propertyCondition('status', NODE_PUBLISHED);
  }
}