You are here

public static function SocialContent::deleteHistory in Social Content 7.2

Utility static function to delete log history of an internal id(nid).

Parameters

array $internal_id: internal id to restrict the search to.

Return value

int Number of records to delete.

1 call to SocialContent::deleteHistory()
social_content_node_delete in ./social_content.module
Implements hook_delete().

File

./social_content.class.inc, line 1026
Social Content class.

Class

SocialContent
TODO: Table names should be a property for ease of change Separate this class into smaller classes.

Code

public static function deleteHistory($internal_id) {
  return db_delete('social_content_history')
    ->condition('internal_id', $internal_id)
    ->execute();
}