@@ -643,10 +650,18 @@ abstract class FeedsProcessor extends FeedsPlugin {
}
/**
* Retrieve MD5 hash of $entity_id from DB.
* @return Empty string if no item is found, hash otherwise.
* Retrieves the MD5 hash of $entity_id from the database.
*
* When "skip hash check" is set to TRUE, returns dummy md5.
*
* @return string
* Empty string if no item is found, hash otherwise.
*/
protectedfunctiongetHash($entity_id){
if($this->config['skip_hash_check']){
return'00000000000000000000000000000000';
}
if($hash=db_query("SELECT hash FROM {feeds_item} WHERE entity_type = :type AND entity_id = :id",array(':type'=>$this->entityType(),':id'=>$entity_id))->fetchField()){