protected function FeedsNodeProcessor::getHash in Feeds 6
Same name and namespace in other branches
- 7 plugins/FeedsNodeProcessor.inc \FeedsNodeProcessor::getHash()
Retrieves the MD5 hash of $entity_id from the database.
When "skip hash check" is set to TRUE, returns dummy md5.
Return value
string Empty string if no item is found, hash otherwise.
1 call to FeedsNodeProcessor::getHash()
- FeedsNodeProcessor::process in plugins/
FeedsNodeProcessor.inc - Implementation of FeedsProcessor::process().
File
- plugins/
FeedsNodeProcessor.inc, line 457 - Class definition of FeedsNodeProcessor.
Class
- FeedsNodeProcessor
- Creates nodes from feed items.
Code
protected function getHash($nid) {
if ($this->config['skip_hash_check']) {
return '00000000000000000000000000000000';
}
$hash = db_result(db_query("SELECT hash FROM {feeds_node_item} WHERE nid = %d", $nid));
if ($hash) {
// Return with the hash.
return $hash;
}
return '';
}