/** * Overrides LinkitSearchPluginEntity::getQueryInstance(). */ function getQueryInstance() { // Call the parent getQueryInstance method. parent::getQueryInstance(); // Only search for permanent files. $this->query->propertyCondition('status', FILE_STATUS_PERMANENT); }
/** * Overrides LinkitSearchPluginEntity::getQueryInstance(). */ 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); } }