protected function FeedsNodeProcessor::getHash in Feeds 7
Same name and namespace in other branches
- 6 plugins/FeedsNodeProcessor.inc \FeedsNodeProcessor::getHash()
Retrieve MD5 hash of $nid from DB.
Return value
Empty string if no item is found, hash otherwise.
1 call to FeedsNodeProcessor::getHash()
- FeedsNodeProcessor::process in plugins/
FeedsNodeProcessor.inc - Implements FeedsProcessor::process().
File
- plugins/
FeedsNodeProcessor.inc, line 396 - Class definition of FeedsNodeProcessor.
Class
- FeedsNodeProcessor
- Creates nodes from feed items.
Code
protected function getHash($nid) {
if ($hash = db_query("SELECT hash FROM {feeds_node_item} WHERE nid = :nid", array(
':nid' => $nid,
))
->fetchField()) {
// Return with the hash.
return $hash;
}
return '';
}