You are here

function heartbeat_messages_uninstall in Heartbeat 6.3

Same name and namespace in other branches
  1. 6.4 heartbeat.module \heartbeat_messages_uninstall()
  2. 6.2 heartbeat.module \heartbeat_messages_uninstall()

Function to uninstall default records

1 call to heartbeat_messages_uninstall()
heartbeat_gather_messages in ./heartbeat.module
Function that gathers all messages from all modules New ones and existing ones

File

./heartbeat.module, line 700

Code

function heartbeat_messages_uninstall($id, $type = 'module') {
  if ($type == 'module') {
    db_query("DELETE FROM {heartbeat_messages} WHERE module = '%s'", $id);
  }
  if ($type == 'message') {
    db_query("DELETE FROM {heartbeat_messages} WHERE message_id = '%s'", $id);
  }
}