diff -Naur feeds.orig/plugins/FeedsNodeProcessor.inc feeds/plugins/FeedsNodeProcessor.inc --- feeds.orig/plugins/FeedsNodeProcessor.inc 2013-07-06 01:53:52.000000000 -0300 +++ feeds/plugins/FeedsNodeProcessor.inc 2014-11-14 16:00:26.000000000 -0300 @@ -164,6 +164,7 @@ 'mappings' => array(), 'author' => 0, 'authorize' => 0, + 'skip_hash_check' => FALSE, ); } @@ -225,6 +226,12 @@ ), '#default_value' => $this->config['update_existing'], ); + $form['skip_hash_check'] = array( + '#type' => 'checkbox', + '#title' => t('Skip hash check'), + '#description' => t('Force update of items even if item source data did not change.'), + '#default_value' => $this->config['skip_hash_check'], + ); return $form; } @@ -440,10 +447,18 @@ } /** - * Retrieve MD5 hash of $nid 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. */ 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.