/**
  * Creates harvest sources from a table.
  *
  * @Given harvest sources:
  */
 public function addHarvestSources(TableNode $harvestSourcesTable)
 {
     parent::addMultipleFromTable($harvestSourcesTable);
 }
 /**
  * Override RawDKANEntityContext::post_save()
  */
 public function post_save($wrapper, $fields)
 {
     parent::post_save($wrapper, $fields);
     $this->moderate($wrapper, $fields);
     if (isset($fields['rating'])) {
         $votes = array('entity_type' => 'node', 'entity_id' => $wrapper->value()->nid, 'value_type' => 'points', 'value' => $fields['rating'], 'tag' => 'feedback');
         $criteria = NULL;
         votingapi_set_votes($votes, $criteria);
     }
 }