protected function SocialContent::logHistory in Social Content 7.2
Log import of row to history.
Parameters
EntityMetadataWrapper $wrapper: The wrapper for the internal node.
object $row: The row to which to log.
1 call to SocialContent::logHistory()
- SocialContent::import in ./
social_content.class.inc - Do the import.
File
- ./
social_content.class.inc, line 832 - Social Content class.
Class
- SocialContent
- TODO: Table names should be a property for ease of change Separate this class into smaller classes.
Code
protected function logHistory($wrapper, $row) {
$history = (object) array(
'instance' => $this->settings['instance']['id'],
'external_id' => $row->id,
'internal_id' => $wrapper
->getIdentifier(),
'stamp' => $row->created,
);
drupal_write_record('social_content_history', $history);
}