You are here

protected function FeedsCommentProcessor::getHash in Feeds Comment Processor 6

Retrieve MD5 hash of $cid from DB.

Return value

Empty string if no item is found, hash otherwise.

1 call to FeedsCommentProcessor::getHash()
FeedsCommentProcessor::process in ./FeedsCommentProcessor.inc
Implementation of FeedsProcessor::process().

File

./FeedsCommentProcessor.inc, line 388
Class definition of FeedsCommentProcessor.

Class

FeedsCommentProcessor
Creates comments from feed items.

Code

protected function getHash($cid) {
  $hash = db_result(db_query("SELECT hash FROM {feeds_comment_item} WHERE cid = %d", $cid));
  if ($hash) {

    // Return with the hash.
    return $hash;
  }
  return '';
}