/**
  * Start a new EntityFieldQuery instance.
  */
 function getQueryInstance()
 {
     // Call the parent getQueryInstance method.
     parent::getQueryInstance();
     // We only what permanent files.
     $this->query->propertyCondition('status', FILE_STATUS_PERMANENT);
 }
 /**
  * Start a new EntityFieldQuery instance.
  */
 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);
     }
 }